abuild: warn if chown, chmod or chgrp found in install scripts

This commit is contained in:
Natanael Copa 2012-02-13 07:37:56 +00:00
parent 2f5545cd61
commit dd033763de
1 changed files with 6 additions and 0 deletions

View File

@ -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