summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-07-08 21:47:26 +0200
committerMichał Górny <mgorny@gentoo.org>2017-09-08 09:32:25 +0200
commitedb22af023c9c0f3e4bce5d04d5f42482ffb909c (patch)
tree70d4d0dc2972c201bb4a52320df6bde58086663a /eclass/gnome2.eclass
parentfdo-mime.eclass: Mark the eclass as deprecated (diff)
downloadgentoo-edb22af023c9c0f3e4bce5d04d5f42482ffb909c.tar.gz
gentoo-edb22af023c9c0f3e4bce5d04d5f42482ffb909c.tar.bz2
gentoo-edb22af023c9c0f3e4bce5d04d5f42482ffb909c.zip
*.eclass: Include GNOME2_ECLASS_ICONS condition in postrm as well
The original GNOME2_ECLASS_ICONS patch has moved the condition from gnome2_icon_cache_update to postinst phases of functions using the preinst/postinst logic but accidentally omitted postrm. Include it there as well to restore the old behavior.
Diffstat (limited to 'eclass/gnome2.eclass')
-rw-r--r--eclass/gnome2.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass
index feb6301221ea..cb233e747605 100644
--- a/eclass/gnome2.eclass
+++ b/eclass/gnome2.eclass
@@ -359,7 +359,9 @@ gnome2_pkg_postinst() {
# Handle scrollkeeper, GSettings, Icons, desktop and mime database updates.
gnome2_pkg_postrm() {
xdg_pkg_postrm
- gnome2_icon_cache_update
+ if [[ -n ${GNOME2_ECLASS_ICONS} ]]; then
+ gnome2_icon_cache_update
+ fi
gnome2_schemas_update
gnome2_scrollkeeper_update