Move the condition that checks the result of gnome2_gdk_pixbuf_savelist
from inside gnome2_gdk_pixbuf_update to the postinst phase
of gnome2.eclass.

Signed-off-by: Michał Górny <mgo...@gentoo.org>
---
 eclass/gnome2.eclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass
index 00188fd7889c..66de2df97f9f 100644
--- a/eclass/gnome2.eclass
+++ b/eclass/gnome2.eclass
@@ -214,7 +214,9 @@ gnome2_pkg_postinst() {
                gnome2_schemas_update
        fi
        gnome2_scrollkeeper_update
-       gnome2_gdk_pixbuf_update
+       if [[ -n ${GNOME2_ECLASS_GDK_PIXBUF_LOADERS} ]]; then
+               gnome2_gdk_pixbuf_update
+       fi
 
        if [[ ${#GNOME2_ECLASS_GIO_MODULES[@]} -gt 0 ]]; then
                gnome2_giomodule_cache_update
-- 
2.43.0


Reply via email to