Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/libmakepkg/lint_package.sh.in
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2016-11-05 18:08:16 -0400
committerAllan McRae <allan@archlinux.org>2016-12-05 15:20:08 +1000
commit5dd764eb47e0109407702a4064e74dc25df3c982 (patch)
tree8564db1bd3c29c09426db39bd0d7e73a2de2184a /scripts/libmakepkg/lint_package.sh.in
parent46101bea1c1232621fa80409586b5eeeaefdac47 (diff)
makepkg: abort on lint_package errors
Allows lint_package to prevent makepkg from creating an invalid package. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/libmakepkg/lint_package.sh.in')
-rw-r--r--scripts/libmakepkg/lint_package.sh.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/libmakepkg/lint_package.sh.in b/scripts/libmakepkg/lint_package.sh.in
index 82b8b9b8..f5bd9792 100644
--- a/scripts/libmakepkg/lint_package.sh.in
+++ b/scripts/libmakepkg/lint_package.sh.in
@@ -40,7 +40,9 @@ lint_package() {
cd_safe "$pkgdir"
msg "$(gettext "Checking for packaging issue...")"
+ local ret=0
for func in ${lint_package_functions[@]}; do
- $func
+ $func || ret=1
done
+ return $ret
}