xbps-src/hooks/pkglint: error out if DESTDIR/usr/sbin exists.
This commit is contained in:
parent
ffad572577
commit
2fad5b3d5d
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,10 @@ hook() {
|
||||||
error=1
|
error=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ -d ${PKGDESTDIR}/usr/sbin ]; then
|
||||||
|
msg_red "${pkgver}: /usr/sbin directory is not allowed, use /usr/bin.\n"
|
||||||
|
error=1
|
||||||
|
fi
|
||||||
for f in sys dev home root run var/run tmp usr/lib64 usr/local; do
|
for f in sys dev home root run var/run tmp usr/lib64 usr/local; do
|
||||||
if [ -d ${PKGDESTDIR}/${f} ]; then
|
if [ -d ${PKGDESTDIR}/${f} ]; then
|
||||||
msg_red "${pkgver}: /${f} directory is not allowed, remove it!\n"
|
msg_red "${pkgver}: /${f} directory is not allowed, remove it!\n"
|
||||||
|
|
Loading…
Add table
Reference in a new issue