[arch-projects] [mkinitcpio][PATCH 04/10] mkinitcpio: obsolete install as a buildhook function

Dave Reisner d at falconindy.com
Sat Jan 28 15:39:40 EST 2012


All official hooks have been using build() for quite some time now.

Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
 mkinitcpio |    8 +-------
 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."
-- 
1.7.8.4



More information about the arch-projects mailing list