aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorĐoàn Trần Công Danh <congdanhqx+sgn@gmail.com>2020-03-08 07:08:24 +0000
committerToyam Cox <aviator45003@gmail.com>2020-04-12 01:19:42 +0000
commit7c8ab37d362d895ebaf339552db1c6874b92d35c (patch)
treec60fbcfab70db2f87dbe90fad2bead2f854b4c34
parentcef3871d480d631fe46c914a74f395357baf58d7 (diff)
downloadvoid-packages-7c8ab37d362d895ebaf339552db1c6874b92d35c.tar
void-packages-7c8ab37d362d895ebaf339552db1c6874b92d35c.tar.gz
void-packages-7c8ab37d362d895ebaf339552db1c6874b92d35c.tar.bz2
void-packages-7c8ab37d362d895ebaf339552db1c6874b92d35c.tar.lz
void-packages-7c8ab37d362d895ebaf339552db1c6874b92d35c.tar.xz
void-packages-7c8ab37d362d895ebaf339552db1c6874b92d35c.tar.zst
void-packages-7c8ab37d362d895ebaf339552db1c6874b92d35c.zip
pkglint: forbid files generated by mimedb trigger
-rw-r--r--common/hooks/pre-pkg/99-pkglint.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/hooks/pre-pkg/99-pkglint.sh b/common/hooks/pre-pkg/99-pkglint.sh
index d0a26808083..d2c281e39db 100644
--- a/common/hooks/pre-pkg/99-pkglint.sh
+++ b/common/hooks/pre-pkg/99-pkglint.sh
@@ -80,6 +80,15 @@ hook() {
error=1
fi
+ # Forbid files would be generated by mimedb trigger
+ for f in XMLnamespaces aliases generic-icons globs globs2 icons \
+ magic mime.cache subclasses treemagic types version ; do
+ if [ -f "${PKGDESTDIR}/usr/share/mime/$f" ]; then
+ msg_red "${pkgver}: /usr/share/mime/$f is forbidden. Delete it.\n"
+ error=1
+ fi
+ done
+
# Forbid empty packages unless build_style=meta
if [ "$build_style" != "meta" ]; then
if [ "$(find $PKGDESTDIR/* -maxdepth 1 -type d 2>/dev/null)" = "" ]; then