diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-13 07:37:56 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-13 13:49:25 +0000 |
commit | dd033763de7ada2831b483c2704939c9dd4db97a (patch) | |
tree | 965685b3287c17fd17dea1e0e3234d3c0b2df15b | |
parent | 2f5545cd615ac7dc4a65ca26469e4cbe15ba3b9a (diff) | |
download | abuild-dd033763de7ada2831b483c2704939c9dd4db97a.tar.gz abuild-dd033763de7ada2831b483c2704939c9dd4db97a.tar.bz2 abuild-dd033763de7ada2831b483c2704939c9dd4db97a.tar.xz abuild-dd033763de7ada2831b483c2704939c9dd4db97a.zip |
abuild: warn if chown, chmod or chgrp found in install scripts
-rwxr-xr-x | abuild.in | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |