04-create-xbps-metadata-scripts.sh: automatically add triggers for

appstream-cache

[ci skip]
This commit is contained in:
maxice8 2018-08-21 18:06:08 -03:00
parent 2e1e5d5a69
commit 59b5fdf36f
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B

View file

@ -272,6 +272,15 @@ _EOF
fi
_add_trigger pycompile
fi
#
# Handle appdata metadata with AppStream
#
for f in ${PKGDESTDIR}/usr/share/appdata/*.xml ${PKGDESTDIR}/usr/share/app-info/*.xml ${PKGDESTDIR}/var/lib/app-info/*.xml ${PKGDESTDIR}/var/cache/app-info/*.xml; do
if [ -f "${f}" ]; then
_add_trigger appstream-cache
break
fi
done
# End of trigger var exports.
echo >> $tmpf