summaryrefslogtreecommitdiff
path: root/classes/mime.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/mime.bbclass')
-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):