summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-01-15 05:57:13 +0100
committerDave Reisner <dreisner@archlinux.org>2012-01-28 21:38:50 +0100
commitc095f414f653fa7d11da3fd478218d73101015a7 (patch)
tree40c768888eb37c36d7b65b3c8b0b0e8b079be509
parent02e846221ac41095b3c1bc01d24f46d004c7f106 (diff)
downloadmkinitcpio-c095f414f653fa7d11da3fd478218d73101015a7.tar.gz
mkinitcpio-c095f414f653fa7d11da3fd478218d73101015a7.tar.xz
mkinitcpio: obsolete install as a buildhook function
All official hooks have been using build() for quite some time now. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-xmkinitcpio8
1 files changed, 1 insertions, 7 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 54b39d9..677f608 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -321,13 +321,7 @@ for hook in ${HOOKS}; do
if [[ -r "${INSTDIR}/${hook}" ]]; then
. "${INSTDIR}/${hook}"
msg2 "Parsing hook: [%s]" "$hook"
- if [[ $(type -t install) = 'function' ]]; then
- warning "Hook '%s' uses a deprecated 'install' function. This should be renamed 'build'" "$hook"
- install
- unset install
- else
- build
- fi
+ build
parse_hook
else
error "Hook '$hook' can not be found."