From 070b7ee367178eb911e2e91a912b4aa35b9d7f6d Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 21 Jan 2011 16:47:01 +0000 Subject: 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 --- meta/classes/package_deb.bbclass | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'meta') diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index 792a2b3ae..29dcc5c45 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") -- cgit v1.2.3