---
 eclass/kde5.eclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 106383bb05c3..9ed664be60c7 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -704,7 +704,9 @@ kde5_pkg_preinst() {
 kde5_pkg_postinst() {
        debug-print-function ${FUNCNAME} "$@"
 
-       gnome2_icon_cache_update
+       if [[ -n ${GNOME2_ECLASS_ICONS} ]]; then
+               gnome2_icon_cache_update
+       fi
        xdg_pkg_postinst
 
        if [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]]; then
-- 
2.12.2


Reply via email to