diff options
Diffstat (limited to 'meta/classes/mime-xdg.bbclass')
| -rw-r--r-- | meta/classes/mime-xdg.bbclass | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes/mime-xdg.bbclass b/meta/classes/mime-xdg.bbclass index 642a5b7595..271f48dd72 100644 --- a/meta/classes/mime-xdg.bbclass +++ b/meta/classes/mime-xdg.bbclass | |||
| @@ -34,7 +34,7 @@ else | |||
| 34 | fi | 34 | fi |
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | python populate_packages_append () { | 37 | python populate_packages:append () { |
| 38 | packages = d.getVar('PACKAGES').split() | 38 | packages = d.getVar('PACKAGES').split() |
| 39 | pkgdest = d.getVar('PKGDEST') | 39 | pkgdest = d.getVar('PKGDEST') |
| 40 | desktop_base = d.getVar('DESKTOPDIR') | 40 | desktop_base = d.getVar('DESKTOPDIR') |
| @@ -59,16 +59,16 @@ python populate_packages_append () { | |||
| 59 | break | 59 | break |
| 60 | if desktops_with_mime_found: | 60 | if desktops_with_mime_found: |
| 61 | bb.note("adding mime-xdg postinst and postrm scripts to %s" % pkg) | 61 | bb.note("adding mime-xdg postinst and postrm scripts to %s" % pkg) |
| 62 | postinst = d.getVar('pkg_postinst_%s' % pkg) | 62 | postinst = d.getVar('pkg_postinst:%s' % pkg) |
| 63 | if not postinst: | 63 | if not postinst: |
| 64 | postinst = '#!/bin/sh\n' | 64 | postinst = '#!/bin/sh\n' |
| 65 | postinst += d.getVar('mime_xdg_postinst') | 65 | postinst += d.getVar('mime_xdg_postinst') |
| 66 | d.setVar('pkg_postinst_%s' % pkg, postinst) | 66 | d.setVar('pkg_postinst:%s' % pkg, postinst) |
| 67 | postrm = d.getVar('pkg_postrm_%s' % pkg) | 67 | postrm = d.getVar('pkg_postrm:%s' % pkg) |
| 68 | if not postrm: | 68 | if not postrm: |
| 69 | postrm = '#!/bin/sh\n' | 69 | postrm = '#!/bin/sh\n' |
| 70 | postrm += d.getVar('mime_xdg_postrm') | 70 | postrm += d.getVar('mime_xdg_postrm') |
| 71 | d.setVar('pkg_postrm_%s' % pkg, postrm) | 71 | d.setVar('pkg_postrm:%s' % pkg, postrm) |
| 72 | bb.note("adding desktop-file-utils dependency to %s" % pkg) | 72 | bb.note("adding desktop-file-utils dependency to %s" % pkg) |
| 73 | d.appendVar('RDEPENDS_' + pkg, " " + d.getVar('MLPREFIX')+"desktop-file-utils") | 73 | d.appendVar('RDEPENDS:' + pkg, " " + d.getVar('MLPREFIX')+"desktop-file-utils") |
| 74 | } | 74 | } |
