summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-11-16 12:57:39 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-16 12:57:39 +0000
commit777b4f6c6bfd9e76016eac833918b92d48c4918d (patch)
treefb628172f12c9cc38d817d89ce7bb195781e0b6e /classes
parent9cbd93cd04ffa16a6b9aee5b6d63751777b91b16 (diff)
insane.bbclass: Remove hardcoded path PKGDEST issue
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/insane.bbclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/classes/insane.bbclass b/classes/insane.bbclass
index 49cfc095d3..495c3a53aa 100644
--- a/classes/insane.bbclass
+++ b/classes/insane.bbclass
@@ -453,13 +453,13 @@ def package_qa_walk(path, funcs, package,d):
return sane
-def package_qa_check_rdepends(pkg, workdir, d):
+def package_qa_check_rdepends(pkg, pkgdest, d):
sane = True
if not "-dbg" in pkg and not "task-" in pkg and not "-image" in pkg:
# Copied from package_ipk.bbclass
# boiler plate to update the data
localdata = bb.data.createCopy(d)
- root = "%s/install/%s" % (workdir, pkg)
+ root = "%s/%s" % (pkgdest, pkg)
bb.data.setVar('ROOT', '', localdata)
bb.data.setVar('ROOT_%s' % pkg, root, localdata)
@@ -491,7 +491,7 @@ def package_qa_check_rdepends(pkg, workdir, d):
# The PACKAGE FUNC to scan each package
python do_package_qa () {
bb.debug(2, "DO PACKAGE QA")
- workdir = bb.data.getVar('WORKDIR', d, True)
+ pkgdest = bb.data.getVar('PKGDEST', d, True)
packages = bb.data.getVar('PACKAGES',d, True)
# no packages should be scanned
@@ -510,10 +510,10 @@ python do_package_qa () {
continue
bb.debug(1, "Checking Package: %s" % package)
- path = "%s/install/%s" % (workdir, package)
+ path = "%s/%s" % (pkgdest, package)
if not package_qa_walk(path, checks, package, d):
walk_sane = False
- if not package_qa_check_rdepends(package, workdir, d):
+ if not package_qa_check_rdepends(package, pkgdest, d):
rdepends_sane = False
if not walk_sane or not rdepends_sane: