Improve build templates by not having to set ${triggers} in some cases.
There's no need to update triggers in the following cases: * Packages installing stuff into /usr/share/applications. * Packages setting $gtk_iconcache_dirs. * Packages setting $font_dirs. * Packages setting ${sgml,xml}_entries. --HG-- extra : convert_revision : 11c74b41f8cf474e9bf4dbb961b1aa9c6f6540bf
This commit is contained in:
parent
7761387770
commit
c077559a89
54 changed files with 36 additions and 76 deletions
|
@ -346,16 +346,6 @@ _EOF
|
|||
chmod 644 ${DESTDIR}/files.plist ${DESTDIR}/props.plist
|
||||
[ -f $metadir/flist ] && chmod 644 $metadir/flist
|
||||
|
||||
#
|
||||
# Update desktop-file-utils database if package contains
|
||||
# any desktop file in /usr/share/applications.
|
||||
#
|
||||
if [ -d ${DESTDIR}/usr/share/applications ]; then
|
||||
if find . -type f -name \*.desktop 2>&1 >/dev/null; then
|
||||
triggers="$triggers update-desktopdb"
|
||||
fi
|
||||
fi
|
||||
|
||||
#
|
||||
# Create the INSTALL/REMOVE scripts if package uses them
|
||||
# or uses any available trigger.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue