2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 18:17:09 +00:00

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
No known key found for this signature in database
GPG Key ID: 63F550786C714EC1

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
}