diff options
-rw-r--r-- | meta/classes/gtk-icon-cache.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/gtk-icon-cache.bbclass b/meta/classes/gtk-icon-cache.bbclass index 0d306a1b84..b256365175 100644 --- a/meta/classes/gtk-icon-cache.bbclass +++ b/meta/classes/gtk-icon-cache.bbclass | |||
@@ -3,7 +3,7 @@ RDEPENDS += "hicolor-icon-theme" | |||
3 | 3 | ||
4 | # This could run on the host as icon cache files are architecture independent, | 4 | # This could run on the host as icon cache files are architecture independent, |
5 | # but there is no gtk-update-icon-cache built natively. | 5 | # but there is no gtk-update-icon-cache built natively. |
6 | gtk-icon-cache_postinst() { | 6 | gtk_icon_cache_postinst() { |
7 | if [ "x$D" != "x" ]; then | 7 | if [ "x$D" != "x" ]; then |
8 | exit 1 | 8 | exit 1 |
9 | fi | 9 | fi |
@@ -14,7 +14,7 @@ gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders | |||
14 | gtk-update-icon-cache -q /usr/share/icons/hicolor | 14 | gtk-update-icon-cache -q /usr/share/icons/hicolor |
15 | } | 15 | } |
16 | 16 | ||
17 | gtk-icon-cache_postrm() { | 17 | gtk_icon_cache_postrm() { |
18 | gtk-update-icon-cache -q /usr/share/icons/hicolor | 18 | gtk-update-icon-cache -q /usr/share/icons/hicolor |
19 | } | 19 | } |
20 | 20 | ||
@@ -33,13 +33,13 @@ python populate_packages_append () { | |||
33 | postinst = bb.data.getVar('pkg_postinst_%s' % pkg, d, 1) or bb.data.getVar('pkg_postinst', d, 1) | 33 | postinst = bb.data.getVar('pkg_postinst_%s' % pkg, d, 1) or bb.data.getVar('pkg_postinst', d, 1) |
34 | if not postinst: | 34 | if not postinst: |
35 | postinst = '#!/bin/sh\n' | 35 | postinst = '#!/bin/sh\n' |
36 | postinst += bb.data.getVar('gtk-icon-cache_postinst', d, 1) | 36 | postinst += bb.data.getVar('gtk_icon_cache_postinst', d, 1) |
37 | bb.data.setVar('pkg_postinst_%s' % pkg, postinst, d) | 37 | bb.data.setVar('pkg_postinst_%s' % pkg, postinst, d) |
38 | 38 | ||
39 | postrm = bb.data.getVar('pkg_postrm_%s' % pkg, d, 1) or bb.data.getVar('pkg_postrm', d, 1) | 39 | postrm = bb.data.getVar('pkg_postrm_%s' % pkg, d, 1) or bb.data.getVar('pkg_postrm', d, 1) |
40 | if not postrm: | 40 | if not postrm: |
41 | postrm = '#!/bin/sh\n' | 41 | postrm = '#!/bin/sh\n' |
42 | postrm += bb.data.getVar('gtk-icon-cache_postrm', d, 1) | 42 | postrm += bb.data.getVar('gtk_icon_cache_postrm', d, 1) |
43 | bb.data.setVar('pkg_postrm_%s' % pkg, postrm, d) | 43 | bb.data.setVar('pkg_postrm_%s' % pkg, postrm, d) |
44 | } | 44 | } |
45 | 45 | ||