rc.apparmor.functions: skip XBPS conffile artifacts

This commit is contained in:
Cameron Nemo 2018-10-09 12:39:24 -07:00
parent 025c7dc6a1
commit 918e19238a
Failed to generate hash of commit

View file

@ -117,7 +117,7 @@ skip_profile() {
"${profile%\~}" != "${profile}" ] ; then
return 1
fi
# Silently ignore the dpkg and pacman files
# Silently ignore the dpkg, pacman, and xbps files
if [ "${profile%.dpkg-new}" != "${profile}" -o \
"${profile%.dpkg-old}" != "${profile}" -o \
"${profile%.dpkg-dist}" != "${profile}" -o \
@ -127,6 +127,9 @@ skip_profile() {
"${profile%.pacnew}" != "${profile}" ] ; then
return 2
fi
if echo "${profile}" | egrep -q '^.+\.new-[0-9\.]+_[0-9]+$'; then
return 2 ;;
fi
return 0
}