[oe-commits] Koen Kooi : debian bbclass: remove hardcoded workdir/ install and replace with PKGDEST

git version control git at git.openembedded.org
Wed Nov 11 06:25:56 UTC 2009


Module: openembedded.git
Branch: shr/merge
Commit: 49342eddad30e15fa6d4d6d279cc9d1b5e534e9e
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=49342eddad30e15fa6d4d6d279cc9d1b5e534e9e

Author: Koen Kooi <koen at openembedded.org>
Date:   Tue Nov 10 22:28:49 2009 +0100

debian bbclass: remove hardcoded workdir/install and replace with PKGDEST

---

 classes/debian.bbclass |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/classes/debian.bbclass b/classes/debian.bbclass
index 0afe9fc..8f6e7d8 100644
--- a/classes/debian.bbclass
+++ b/classes/debian.bbclass
@@ -16,7 +16,7 @@ do_package_write_rpm[rdeptask] = "do_package"
 python debian_package_name_hook () {
 	import glob, copy, stat, errno, re
 
-	workdir = bb.data.getVar('WORKDIR', d, 1)
+	pkgdest = bb.data.getVar('PKGDEST', d, 1)
 	packages = bb.data.getVar('PACKAGES', d, 1)
 
 	def socrunch(s):
@@ -45,7 +45,7 @@ python debian_package_name_hook () {
 		sonames = []
 		has_bins = 0
 		has_libs = 0
-		pkg_dir = os.path.join(workdir, "install", orig_pkg)
+		pkg_dir = os.path.join(pkgdest, orig_pkg)
 		for root, dirs, files in os.walk(pkg_dir):
 			if bin_re.match(root) and files:
 				has_bins = 1





More information about the Openembedded-commits mailing list