From adc6ca1f2c08bb01a29f5247bfa5ee3bd30ee727 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 1 Feb 2015 22:32:51 +1000 Subject: libmakepkg: make package checking functions extendable To add a new package check, drop a file in libmakepkg/lint and add the function to the "lint_functions" array. Signed-off-by: Allan McRae --- scripts/libmakepkg/lint_package/missing_backup.sh.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/libmakepkg/lint_package/missing_backup.sh.in') diff --git a/scripts/libmakepkg/lint_package/missing_backup.sh.in b/scripts/libmakepkg/lint_package/missing_backup.sh.in index d1008749..64d5a64a 100644 --- a/scripts/libmakepkg/lint_package/missing_backup.sh.in +++ b/scripts/libmakepkg/lint_package/missing_backup.sh.in @@ -26,6 +26,8 @@ LIBRARY=${LIBRARY:-'@libmakepkgdir@'} source "$LIBRARY/util/message.sh" +lint_package_functions+=('warn_missing_backup') + warn_missing_backup() { local file for file in "${backup[@]}"; do -- cgit v1.2.3