summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")