[oe-commits] Richard Purdie : insane.bbclass: Remove hardcoded path PKGDEST issue
git version control
git at git.openembedded.org
Tue Nov 17 09:13:51 UTC 2009
Module: openembedded.git
Branch: shr/merge
Commit: 777b4f6c6bfd9e76016eac833918b92d48c4918d
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=777b4f6c6bfd9e76016eac833918b92d48c4918d
Author: Richard Purdie <rpurdie at linux.intel.com>
Date: Mon Nov 16 12:57:39 2009 +0000
insane.bbclass: Remove hardcoded path PKGDEST issue
Signed-off-by: Richard Purdie <rpurdie at linux.intel.com>
---
classes/insane.bbclass | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/classes/insane.bbclass b/classes/insane.bbclass
index 49cfc09..495c3a5 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:
More information about the Openembedded-commits
mailing list