summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-11-16 00:12:03 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-16 00:12:03 +0000
commit01f6b4999d241c6dbf3d82631c8978db400bb415 (patch)
tree38e09cae2b78db22082c30cd0aa009108e86b3a4 /classes
parent97da69ac08360efbd029ea7ac7725b695d6ab6e3 (diff)
mime.bbclass: Remove hardcoded PKGDEST directory assumption
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/mime.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/mime.bbclass b/classes/mime.bbclass
index 724fb23713..afba5e79a7 100644
--- a/classes/mime.bbclass
+++ b/classes/mime.bbclass
@@ -27,10 +27,11 @@ fi
python populate_packages_append () {
import os.path, re
packages = bb.data.getVar('PACKAGES', d, 1).split()
+ pkgdest = bb.data.getVar('PKGDEST', d, 1)
workdir = bb.data.getVar('WORKDIR', d, 1)
for pkg in packages:
- mime_dir = '%s/install/%s/usr/share/mime/packages' % (workdir, pkg)
+ mime_dir = '%s/%s/%s/usr/share/mime/packages' % (workdir, pkgdest, pkg)
mimes = []
mime_re = re.compile(".*\.xml$")
if os.path.exists(mime_dir):