summaryrefslogtreecommitdiff
path: root/classes/gtk-icon-cache.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-11-16 00:08:22 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-16 00:08:22 +0000
commit97da69ac08360efbd029ea7ac7725b695d6ab6e3 (patch)
tree9ee5c06792436dd3abfc2aaeda2c34449d93e758 /classes/gtk-icon-cache.bbclass
parent6b591e50791c504cbd180aae39af6350815f6fb3 (diff)
gtk-icon-cache.bbclass: Remove hardcoded PKGDEST directory assumption
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'classes/gtk-icon-cache.bbclass')
-rw-r--r--classes/gtk-icon-cache.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/gtk-icon-cache.bbclass b/classes/gtk-icon-cache.bbclass
index ea1fdff3dd..ce78d1f7c9 100644
--- a/classes/gtk-icon-cache.bbclass
+++ b/classes/gtk-icon-cache.bbclass
@@ -29,10 +29,11 @@ done
python populate_packages_append () {
import os.path
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:
- icon_dir = '%s/install/%s/%s/icons' % (workdir, pkg, bb.data.getVar('datadir', d, 1))
+ icon_dir = '%s/%s/%s/%s/icons' % (workdir, pkgdest, pkg, bb.data.getVar('datadir', d, 1))
if not os.path.exists(icon_dir):
continue