99-pkglint.sh: prevent installing files in /destdir

Signed-off-by: Cameron Nemo <cnemo@tutanota.com>
This commit is contained in:
Cameron Nemo 2019-06-23 07:49:35 -07:00 committed by Leah Neukirchen
parent 4e0b07333d
commit 206a4a73f5
1 changed files with 1 additions and 1 deletions

View File

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