abuild: skip /var/run in fhs check

We have many package containing directories under /var/run. Allow those
for now.

Partially reverts commit 08d2d81587 (abuild: extend fhs check)
This commit is contained in:
Natanael Copa 2024-04-21 10:35:19 +02:00
parent c48f8498e7
commit 68d6aa65f4
1 changed files with 1 additions and 1 deletions

View File

@ -782,7 +782,7 @@ postcheck() {
msg "Running postcheck for $name"
# checking for FHS compat
if ! options_has "!fhs"; then
for i in srv usr/local opt var/run tmp var/tmp var/lock var/empty home sys proc mnt dev; do
for i in srv usr/local opt tmp var/tmp var/lock var/empty home sys proc mnt dev; do
for j in "$dir"/"$i"/* "$dir"/"$i"/.[!.]* "$dir"/"$i"/..?*; do
if [ -L "$j" ] || [ -e "$j" ]; then
error "Packages must not put anything under /$i"