diff options
-rw-r--r-- | packages/gnome/gnome-icon-theme_2.24.0.bb | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/packages/gnome/gnome-icon-theme_2.24.0.bb b/packages/gnome/gnome-icon-theme_2.24.0.bb index 2a7bf3abe2..755e39151e 100644 --- a/packages/gnome/gnome-icon-theme_2.24.0.bb +++ b/packages/gnome/gnome-icon-theme_2.24.0.bb @@ -4,7 +4,7 @@ DEPENDS = "icon-naming-utils-native glib-2.0 intltool-native" RDEPENDS = "hicolor-icon-theme" RRECOMMENDS = "librsvg-gtk" -PR = "r1" +PR = "r2" FILES_${PN} += "${datadir}/*" @@ -12,3 +12,18 @@ EXTRA_OECONF = "--disable-hicolor-check" inherit gnome +pkg_postinst_${PN}() { +if [ "x$D" != "x" ]; then + exit 1 +fi + +# Update the pixbuf loaders in case they haven't been registered yet +gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders + +gtk-update-icon-cache -q /usr/share/icons/gnome +} + +pkg_postrm_${PN}() { +gtk-update-icon-cache -q /usr/share/icons/gnome +} + |