aboutsummaryrefslogtreecommitdiffstats
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 09:06:48 +0000
commit24cbe88429ba021d7c461e0271b67106d11d5eb2 (patch)
tree9cd8a214a2a4e5027ce8f211340002a4f62c7e42 /meta/classes/mime.bbclass
parent323ef78e377525e2214f4700c30305c493137853 (diff)
downloadopenembedded-core-contrib-24cbe88429ba021d7c461e0271b67106d11d5eb2.tar.gz
classes: Drop none package specific packaging variable accesses
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 b669418286c..690610e49d8 100644
--- a/meta/classes/mime.bbclass
+++ b/meta/classes/mime.bbclass
@@ -43,18 +43,16 @@ python populate_packages_append () {
mimes.append(f)
if mimes:
bb.note("adding mime postinst and postrm scripts to %s" % pkg)
- postinst = d.getVar('pkg_postinst_%s' % pkg, True) or d.getVar('pkg_postinst', True)
+ postinst = d.getVar('pkg_postinst_%s' % pkg, True)
if not postinst:
postinst = '#!/bin/sh\n'
postinst += d.getVar('mime_postinst', True)
d.setVar('pkg_postinst_%s' % pkg, postinst)
- postrm = d.getVar('pkg_postrm_%s' % pkg, True) or d.getVar('pkg_postrm', True)
+ postrm = d.getVar('pkg_postrm_%s' % pkg, True)
if not postrm:
postrm = '#!/bin/sh\n'
postrm += d.getVar('mime_postrm', True)
d.setVar('pkg_postrm_%s' % pkg, postrm)
bb.note("adding shared-mime-info-data dependency to %s" % pkg)
- rdepends = explode_deps(d.getVar('RDEPENDS_' + pkg, False) or d.getVar('RDEPENDS', False) or "" )
- rdepends.append("shared-mime-info-data")
- d.setVar('RDEPENDS_' + pkg, " " + " ".join(rdepends))
+ d.appendVar('RDEPENDS_' + pkg, " shared-mime-info-data")
}