diff options
author | Koen Kooi <koen@openembedded.org> | 2009-01-30 21:45:54 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-01-30 21:45:54 +0100 |
commit | 82bc1c85b88b4b44262ba6ebbc2b460be1414af5 (patch) | |
tree | dd79b45b48cc126a354a66545af60b39cd70ded4 /packages/gnome/gnome-icon-theme_2.24.0.bb | |
parent | 0246f0a44c976d73686b2fe9a8a318cdcf83a9d3 (diff) |
gnome-icon-theme: update icon cache in postinst
Diffstat (limited to 'packages/gnome/gnome-icon-theme_2.24.0.bb')
-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 +} + |