diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-21 16:47:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-21 16:47:01 +0000 |
commit | 070b7ee367178eb911e2e91a912b4aa35b9d7f6d (patch) | |
tree | a5d83e08b66c8405fb2b61b7bea121bc8f54d791 /meta | |
parent | 9e7eb5955af578256e5ccd6a45406f4fa6220dde (diff) | |
download | openembedded-core-070b7ee367178eb911e2e91a912b4aa35b9d7f6d.tar.gz openembedded-core-070b7ee367178eb911e2e91a912b4aa35b9d7f6d.tar.bz2 openembedded-core-070b7ee367178eb911e2e91a912b4aa35b9d7f6d.zip |
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')
-rw-r--r-- | meta/classes/package_deb.bbclass | 9 |
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 () { bb.error("PKGWRITEDIRDEB not defined, unable to package") return - dvar = bb.data.getVar('D', d, True) - if not dvar: - bb.error("D not defined, unable to package") - return - bb.mkdirhier(dvar) - packages = bb.data.getVar('PACKAGES', d, True) if not packages: bb.debug(1, "PACKAGES not defined, nothing to package") @@ -101,9 +95,10 @@ python do_package_deb () { bb.debug(1, "No packages; nothing to do") return + pkgdest = bb.data.getVar('PKGDEST', d, True) + for pkg in packages.split(): localdata = bb.data.createCopy(d) - pkgdest = bb.data.getVar('PKGDEST', d, True) root = "%s/%s" % (pkgdest, pkg) lf = bb.utils.lockfile(root + ".lock") |