summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_deb.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-21 16:47:01 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-21 16:47:01 +0000
commit070b7ee367178eb911e2e91a912b4aa35b9d7f6d (patch)
treea5d83e08b66c8405fb2b61b7bea121bc8f54d791 /meta/classes/package_deb.bbclass
parent9e7eb5955af578256e5ccd6a45406f4fa6220dde (diff)
downloadpoky-070b7ee367178eb911e2e91a912b4aa35b9d7f6d.tar.gz
package_deb: Remove access to the D directory which isn't used and might not exist (same problem as the previous patch to package_ipk fixes)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_deb.bbclass')
-rw-r--r--meta/classes/package_deb.bbclass9
1 files changed, 2 insertions, 7 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index 792a2b3aef..29dcc5c457 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -81,12 +81,6 @@ python do_package_deb () {
81 bb.error("PKGWRITEDIRDEB not defined, unable to package") 81 bb.error("PKGWRITEDIRDEB not defined, unable to package")
82 return 82 return
83 83
84 dvar = bb.data.getVar('D', d, True)
85 if not dvar:
86 bb.error("D not defined, unable to package")
87 return
88 bb.mkdirhier(dvar)
89
90 packages = bb.data.getVar('PACKAGES', d, True) 84 packages = bb.data.getVar('PACKAGES', d, True)
91 if not packages: 85 if not packages:
92 bb.debug(1, "PACKAGES not defined, nothing to package") 86 bb.debug(1, "PACKAGES not defined, nothing to package")
@@ -101,9 +95,10 @@ python do_package_deb () {
101 bb.debug(1, "No packages; nothing to do") 95 bb.debug(1, "No packages; nothing to do")
102 return 96 return
103 97
98 pkgdest = bb.data.getVar('PKGDEST', d, True)
99
104 for pkg in packages.split(): 100 for pkg in packages.split():
105 localdata = bb.data.createCopy(d) 101 localdata = bb.data.createCopy(d)
106 pkgdest = bb.data.getVar('PKGDEST', d, True)
107 root = "%s/%s" % (pkgdest, pkg) 102 root = "%s/%s" % (pkgdest, pkg)
108 103
109 lf = bb.utils.lockfile(root + ".lock") 104 lf = bb.utils.lockfile(root + ".lock")