commit: edb22af023c9c0f3e4bce5d04d5f42482ffb909c Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Jul 8 19:47:26 2017 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Sep 8 07:32:25 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edb22af0
*.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. eclass/gnome2.eclass | 4 +++- eclass/kde4-base.eclass | 4 +++- eclass/kde5.eclass | 4 +++- eclass/xfconf.eclass | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass index feb6301221e..cb233e74760 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 diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass index 07b188d044f..b43f0600e5e 100644 --- a/eclass/kde4-base.eclass +++ b/eclass/kde4-base.eclass @@ -950,7 +950,9 @@ kde4-base_pkg_postinst() { kde4-base_pkg_postrm() { debug-print-function ${FUNCNAME} "$@" - gnome2_icon_cache_update + if [[ -n ${GNOME2_ECLASS_ICONS} ]]; then + gnome2_icon_cache_update + fi fdo-mime_desktop_database_update fdo-mime_mime_database_update buildsycoca diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass index b48dd4b46b1..256c59bc873 100644 --- a/eclass/kde5.eclass +++ b/eclass/kde5.eclass @@ -803,7 +803,9 @@ kde5_pkg_postinst() { kde5_pkg_postrm() { debug-print-function ${FUNCNAME} "$@" - gnome2_icon_cache_update + if [[ -n ${GNOME2_ECLASS_ICONS} ]]; then + gnome2_icon_cache_update + fi xdg_pkg_postrm } diff --git a/eclass/xfconf.eclass b/eclass/xfconf.eclass index b91d0fe1eda..4cbcb8fa9a4 100644 --- a/eclass/xfconf.eclass +++ b/eclass/xfconf.eclass @@ -151,5 +151,7 @@ xfconf_pkg_postrm() { debug-print-function ${FUNCNAME} "$@" fdo-mime_desktop_database_update fdo-mime_mime_database_update - gnome2_icon_cache_update + if [[ -n ${GNOME2_ECLASS_ICONS} ]]; then + gnome2_icon_cache_update + fi }