xbps-src/hooks/pkglint: error out if DESTDIR/usr/sbin exists.

This commit is contained in:
Juan RP 2015-06-03 14:13:31 +02:00
parent ffad572577
commit 2fad5b3d5d

View file

@ -13,6 +13,10 @@ hook() {
error=1
fi
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
if [ -d ${PKGDESTDIR}/${f} ]; then
msg_red "${pkgver}: /${f} directory is not allowed, remove it!\n"