aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>2020-12-30 16:32:47 +0000
committerĐoàn Trần Công Danh <congdanhqx@gmail.com>2021-01-09 06:11:27 +0000
commit04825ced019ca053b4d17baead5c309de0114bef (patch)
tree095c6b21483f7dd5bfe204e276ea12d18eb55e86
parentc78b0d77cdc22a484315f9ba5e9faa3a1f8b1a4d (diff)
downloadvoid-packages-04825ced019ca053b4d17baead5c309de0114bef.tar
void-packages-04825ced019ca053b4d17baead5c309de0114bef.tar.gz
void-packages-04825ced019ca053b4d17baead5c309de0114bef.tar.bz2
void-packages-04825ced019ca053b4d17baead5c309de0114bef.tar.lz
void-packages-04825ced019ca053b4d17baead5c309de0114bef.tar.xz
void-packages-04825ced019ca053b4d17baead5c309de0114bef.tar.zst
void-packages-04825ced019ca053b4d17baead5c309de0114bef.zip
hooks: abort if l10n files found in /usr/lib
-rw-r--r--common/hooks/pre-pkg/99-pkglint.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/hooks/pre-pkg/99-pkglint.sh b/common/hooks/pre-pkg/99-pkglint.sh
index 834bdb0a682..ada06c485ea 100644
--- a/common/hooks/pre-pkg/99-pkglint.sh
+++ b/common/hooks/pre-pkg/99-pkglint.sh
@@ -68,6 +68,12 @@ hook() {
fi
done
+ # Check for l10n files in usr/lib/locale
+ if [ -d ${PKGDESTDIR}/usr/lib/locale ]; then
+ msg_red "${pkgver}: /usr/lib/locale is forbidden, use /usr/share/locale!\n"
+ error=1
+ fi
+
# Check for bash completions in etc/bash_completion.d
# should be on usr/share/bash-completion/completions
if [ -d ${PKGDESTDIR}/etc/bash_completion.d ]; then