mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-03-11 06:37:31 +00:00
abuild: fix usrmerge warning with symlinks
Fixes <da9269ba62b> abuild: warn when files are installed to non-usr locations
This commit is contained in:
parent
35b6b30134
commit
186edf62a8
@ -804,7 +804,7 @@ postcheck() {
|
|||||||
# /usr merge
|
# /usr merge
|
||||||
if ! options_has "!usrmerge"; then
|
if ! options_has "!usrmerge"; then
|
||||||
for i in bin sbin lib; do
|
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"
|
warning "Packages must not put anything under /$i, use /usr/${i##*s} instead"
|
||||||
e=1
|
e=1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user