Commit 92af0b86 authored by Natanael Copa's avatar Natanael Copa

abuild: fix post check messages

parent f7c56801
......@@ -547,16 +547,16 @@ prepare_subpackages() {
$0 $func prepare_package || return 1
# 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
# 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?"
# check directory permissions
i=$(find "$pkgdir" -type d -perm -777 | sed "s|^$pkgdir|\t|")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment