hooks/99-pkglint.sh: error when pkg ships gschemas.compiled

gschemas.compiled is generated by glib-compile-schemas and should not be
overriden by a package
This commit is contained in:
Michal Vasilek 2022-11-05 13:59:57 +01:00
parent e278b09125
commit 0eddd66177
1 changed files with 5 additions and 0 deletions

View File

@ -137,6 +137,11 @@ hook() {
error=1
fi
if [ -e ${PKGDESTDIR}/usr/share/glib-2.0/schemas/gschemas.compiled ]; then
msg_red "${pkgver}: /usr/share/glib-2.0/schemas/gschemas.compiled is forbidden. Delete it.\n"
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