abuild: fix usrmerge warning with symlinks

Fixes <da9269ba62b> abuild: warn when files are installed to non-usr locations
This commit is contained in:
Sertonix 2024-10-09 13:57:42 +02:00 committed by Natanael Copa
parent 35b6b30134
commit 186edf62a8
1 changed files with 1 additions and 1 deletions

View File

@ -804,7 +804,7 @@ postcheck() {
# /usr merge
if ! options_has "!usrmerge"; then
for i in bin sbin lib; do
if [ -e "$dir"/$i ]; then
if [ -L "$dir"/$i ] || [ -e "$dir"/$i ]; then
warning "Packages must not put anything under /$i, use /usr/${i##*s} instead"
e=1
fi