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