abuild: check for /usr/lib/charset.alias and error out if found

This commit is contained in:
Natanael Copa 2013-07-26 07:22:45 +00:00
parent 4234a10e92
commit b0ea14135d
1 changed files with 6 additions and 0 deletions

View File

@ -647,6 +647,12 @@ postcheck() {
echo "$i"
return 1
fi
# look for /usr/lib/charset.alias
if [ -e "$dir"/usr/lib/charset.alias ] \
&& ! options_has "charset.alias"; then
error "Found /usr/lib/charset.alias"
return 1
fi
# check directory permissions
i=$(find "$dir" -type d -perm -777 | sed "s|^$dir|\t|")
if [ -n "$i" ]; then