summaryrefslogtreecommitdiffstats
path: root/meta/classes/mime.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-03 22:10:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-17 22:32:03 +0000
commit069a332d1cf0778831673ed4ab5dfadbe2758783 (patch)
treecac103c685297423bdc5f67f8af9ac8dd64cc699 /meta/classes/mime.bbclass
parent68ceb02e98c977dd3eadea2c38b5eb796d6b6db4 (diff)
downloadpoky-069a332d1cf0778831673ed4ab5dfadbe2758783.tar.gz
classes: Drop none package specific packaging variable accesses
(From OE-Core rev: 24cbe88429ba021d7c461e0271b67106d11d5eb2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/mime.bbclass')
-rw-r--r--meta/classes/mime.bbclass8
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/classes/mime.bbclass b/meta/classes/mime.bbclass
index b669418286..690610e49d 100644
--- a/meta/classes/mime.bbclass
+++ b/meta/classes/mime.bbclass
@@ -43,18 +43,16 @@ python populate_packages_append () {
43 mimes.append(f) 43 mimes.append(f)
44 if mimes: 44 if mimes:
45 bb.note("adding mime postinst and postrm scripts to %s" % pkg) 45 bb.note("adding mime postinst and postrm scripts to %s" % pkg)
46 postinst = d.getVar('pkg_postinst_%s' % pkg, True) or d.getVar('pkg_postinst', True) 46 postinst = d.getVar('pkg_postinst_%s' % pkg, True)
47 if not postinst: 47 if not postinst:
48 postinst = '#!/bin/sh\n' 48 postinst = '#!/bin/sh\n'
49 postinst += d.getVar('mime_postinst', True) 49 postinst += d.getVar('mime_postinst', True)
50 d.setVar('pkg_postinst_%s' % pkg, postinst) 50 d.setVar('pkg_postinst_%s' % pkg, postinst)
51 postrm = d.getVar('pkg_postrm_%s' % pkg, True) or d.getVar('pkg_postrm', True) 51 postrm = d.getVar('pkg_postrm_%s' % pkg, True)
52 if not postrm: 52 if not postrm:
53 postrm = '#!/bin/sh\n' 53 postrm = '#!/bin/sh\n'
54 postrm += d.getVar('mime_postrm', True) 54 postrm += d.getVar('mime_postrm', True)
55 d.setVar('pkg_postrm_%s' % pkg, postrm) 55 d.setVar('pkg_postrm_%s' % pkg, postrm)
56 bb.note("adding shared-mime-info-data dependency to %s" % pkg) 56 bb.note("adding shared-mime-info-data dependency to %s" % pkg)
57 rdepends = explode_deps(d.getVar('RDEPENDS_' + pkg, False) or d.getVar('RDEPENDS', False) or "" ) 57 d.appendVar('RDEPENDS_' + pkg, " shared-mime-info-data")
58 rdepends.append("shared-mime-info-data")
59 d.setVar('RDEPENDS_' + pkg, " " + " ".join(rdepends))
60} 58}