aboutsummaryrefslogtreecommitdiff
path: root/common/hooks/pre-pkg/99-pkglint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'common/hooks/pre-pkg/99-pkglint.sh')
-rw-r--r--common/hooks/pre-pkg/99-pkglint.sh17
1 files changed, 6 insertions, 11 deletions
diff --git a/common/hooks/pre-pkg/99-pkglint.sh b/common/hooks/pre-pkg/99-pkglint.sh
index 330df6d2454..ada06c485ea 100644
--- a/common/hooks/pre-pkg/99-pkglint.sh
+++ b/common/hooks/pre-pkg/99-pkglint.sh
@@ -83,17 +83,12 @@ hook() {
# Prevent packages from installing to these paths in etc, they should use
# their equivalent in usr/lib
- #
- # But base-files is a special case, since it may contains suggested but
- # still user-alterable default files (particularly sysctl.d)
- if [ "${pkgname}" != "base-files" ]; then
- for f in udev/{rules.d,hwdb.d} modprobe.d sysctl.d; do
- if [ -d ${PKGDESTDIR}/etc/${f} ]; then
- msg_red "${pkgver}: /etc/${f} is forbidden. Use /usr/lib/${f}.\n"
- error=1
- fi
- done
- fi
+ for f in udev/{rules.d,hwdb.d} modprobe.d sysctl.d; do
+ if [ -d ${PKGDESTDIR}/etc/${f} ]; then
+ msg_red "${pkgver}: /etc/${f} is forbidden. Use /usr/lib/${f}.\n"
+ error=1
+ fi
+ done
# Likewise with the comment above but for usr/share
for f in X11/xorg.conf.d gconf/schemas; do