From dd033763de7ada2831b483c2704939c9dd4db97a Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 13 Feb 2012 07:37:56 +0000 Subject: abuild: warn if chown, chmod or chgrp found in install scripts --- abuild.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'abuild.in') diff --git a/abuild.in b/abuild.in index e01d0fe..4ced139 100755 --- a/abuild.in +++ b/abuild.in @@ -157,6 +157,12 @@ default_sanitycheck() { die "$i: install script does not match pkgname or any subpackage" fi [ -e "$startdir/$i" ] || die "install script $i is missing" + for j in chown chmod chgrp; do + if grep -q $j "$startdir"/$i; then + warning "$i: found $j" + warning2 "Permissions should be fixed in APKBUILD package()" + fi + done done for i in $triggers; do -- cgit v1.2.3-60-g2f50