summaryrefslogtreecommitdiffstats
path: root/meta/classes/mime.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/mime.bbclass')
-rw-r--r--meta/classes/mime.bbclass12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes/mime.bbclass b/meta/classes/mime.bbclass
index bb99bc35cb..8d176a884e 100644
--- a/meta/classes/mime.bbclass
+++ b/meta/classes/mime.bbclass
@@ -39,7 +39,7 @@ fi
39fi 39fi
40} 40}
41 41
42python populate_packages_append () { 42python populate_packages:append () {
43 packages = d.getVar('PACKAGES').split() 43 packages = d.getVar('PACKAGES').split()
44 pkgdest = d.getVar('PKGDEST') 44 pkgdest = d.getVar('PKGDEST')
45 mimedir = d.getVar('MIMEDIR') 45 mimedir = d.getVar('MIMEDIR')
@@ -54,17 +54,17 @@ python populate_packages_append () {
54 break 54 break
55 if mimes_types_found: 55 if mimes_types_found:
56 bb.note("adding mime postinst and postrm scripts to %s" % pkg) 56 bb.note("adding mime postinst and postrm scripts to %s" % pkg)
57 postinst = d.getVar('pkg_postinst_%s' % pkg) 57 postinst = d.getVar('pkg_postinst:%s' % pkg)
58 if not postinst: 58 if not postinst:
59 postinst = '#!/bin/sh\n' 59 postinst = '#!/bin/sh\n'
60 postinst += d.getVar('mime_postinst') 60 postinst += d.getVar('mime_postinst')
61 d.setVar('pkg_postinst_%s' % pkg, postinst) 61 d.setVar('pkg_postinst:%s' % pkg, postinst)
62 postrm = d.getVar('pkg_postrm_%s' % pkg) 62 postrm = d.getVar('pkg_postrm:%s' % pkg)
63 if not postrm: 63 if not postrm:
64 postrm = '#!/bin/sh\n' 64 postrm = '#!/bin/sh\n'
65 postrm += d.getVar('mime_postrm') 65 postrm += d.getVar('mime_postrm')
66 d.setVar('pkg_postrm_%s' % pkg, postrm) 66 d.setVar('pkg_postrm:%s' % pkg, postrm)
67 if pkg != 'shared-mime-info-data': 67 if pkg != 'shared-mime-info-data':
68 bb.note("adding shared-mime-info-data dependency to %s" % pkg) 68 bb.note("adding shared-mime-info-data dependency to %s" % pkg)
69 d.appendVar('RDEPENDS_' + pkg, " " + d.getVar('MLPREFIX')+"shared-mime-info-data") 69 d.appendVar('RDEPENDS:' + pkg, " " + d.getVar('MLPREFIX')+"shared-mime-info-data")
70} 70}