abuild: don't set the error on throwing a warning

Fixes da9269ba62
This commit is contained in:
Pablo Correa Gómez 2024-10-10 14:16:30 +02:00
parent fd7fa8a124
commit 9c4abc561e
No known key found for this signature in database
GPG Key ID: 7A342565FF635F79
2 changed files with 1 additions and 3 deletions

View File

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

View File

@ -1304,10 +1304,9 @@ abuild_usr_merge_body() {
"\$pkgdir"/sbin
}
EOF
atf_check -s exit:1 \
atf_check -s exit:0 \
-e match:"WARNING:.*: Packages must not put anything under /lib, use /usr/lib instead" \
-e match:"WARNING:.*: Packages must not put anything under /bin, use /usr/bin instead" \
-e match:"WARNING:.*: Packages must not put anything under /sbin, use /usr/bin instead" \
abuild
}