diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/pixbufcache.bbclass | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/meta/classes/pixbufcache.bbclass b/meta/classes/pixbufcache.bbclass index 3c34557227..4e0f57729c 100644 --- a/meta/classes/pixbufcache.bbclass +++ b/meta/classes/pixbufcache.bbclass | |||
@@ -8,27 +8,22 @@ inherit qemu | |||
8 | 8 | ||
9 | PIXBUF_PACKAGES ??= "${PN}" | 9 | PIXBUF_PACKAGES ??= "${PN}" |
10 | 10 | ||
11 | # | ||
12 | # On host, the postinstall MUST return 1 because we do not know if the intercept | ||
13 | # hook will succeed. If it does succeed, than the packages will be marked as | ||
14 | # installed. | ||
15 | # | ||
16 | pixbufcache_common() { | 11 | pixbufcache_common() { |
17 | if [ "x$D" != "x" ]; then | 12 | if [ "x$D" != "x" ]; then |
18 | $INTERCEPT_DIR/postinst_intercept update_pixbuf_cache ${PKG} libdir=${libdir} \ | 13 | $INTERCEPT_DIR/postinst_intercept update_pixbuf_cache ${PKG} libdir=${libdir} \ |
19 | bindir=${bindir} base_libdir=${base_libdir} | 14 | bindir=${bindir} base_libdir=${base_libdir} |
20 | exit 1 | 15 | else |
21 | fi | 16 | |
22 | 17 | # Update the pixbuf loaders in case they haven't been registered yet | |
23 | # Update the pixbuf loaders in case they haven't been registered yet | 18 | GDK_PIXBUF_MODULEDIR=${libdir}/gdk-pixbuf-2.0/2.10.0/loaders gdk-pixbuf-query-loaders --update-cache |
24 | GDK_PIXBUF_MODULEDIR=${libdir}/gdk-pixbuf-2.0/2.10.0/loaders gdk-pixbuf-query-loaders --update-cache | 19 | |
25 | 20 | if [ -x ${bindir}/gtk-update-icon-cache ] && [ -d ${datadir}/icons ]; then | |
26 | if [ -x ${bindir}/gtk-update-icon-cache ] && [ -d ${datadir}/icons ]; then | 21 | for icondir in /usr/share/icons/*; do |
27 | for icondir in /usr/share/icons/*; do | 22 | if [ -d ${icondir} ]; then |
28 | if [ -d ${icondir} ]; then | 23 | gtk-update-icon-cache -t -q ${icondir} |
29 | gtk-update-icon-cache -t -q ${icondir} | 24 | fi |
30 | fi | 25 | done |
31 | done | 26 | fi |
32 | fi | 27 | fi |
33 | } | 28 | } |
34 | 29 | ||