diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-01-15 05:57:13 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-01-28 21:38:50 +0100 |
commit | c095f414f653fa7d11da3fd478218d73101015a7 (patch) | |
tree | 40c768888eb37c36d7b65b3c8b0b0e8b079be509 | |
parent | 02e846221ac41095b3c1bc01d24f46d004c7f106 (diff) | |
download | mkinitcpio-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-x | mkinitcpio | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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." |