From 82bc1c85b88b4b44262ba6ebbc2b460be1414af5 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Fri, 30 Jan 2009 21:45:54 +0100 Subject: gnome-icon-theme: update icon cache in postinst --- packages/gnome/gnome-icon-theme_2.24.0.bb | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'packages/gnome') 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 +} + -- cgit v1.2.3