abuild: fix post check messages

This commit is contained in:
Natanael Copa 2012-02-13 09:50:39 +00:00
parent f7c56801e9
commit 92af0b8697
1 changed files with 3 additions and 3 deletions

View File

@ -547,16 +547,16 @@ prepare_subpackages() {
$0 $func prepare_package || return 1
done
# post check
i=$(find "$pkgdir" -name '*.la')
i=$(find "$pkgdir" -name '*.la' | sed "s|^$pkgdir|\t|")
if [ -n "$i" ] && ! options_has "libtool"; then
error "Libtool archives (*.la) files found and \$options has no 'libtool' flag:"
echo "$i" | sed 's/^/ /'
echo "$i"
return 1
fi
# post check for /usr/share/locale
if [ -d "$pkgdir"/usr/share/locale ]; then
warning "Found /usr/share/locale"
warning "Maybe add \$pkgname-lang to subpackages?"
warning2 "Maybe add \$pkgname-lang to subpackages?"
fi
# check directory permissions
i=$(find "$pkgdir" -type d -perm -777 | sed "s|^$pkgdir|\t|")