Patchwork package_tar: Fix so it actually works

login
register
mail settings
Submitter Richard Purdie
Date Feb. 17, 2013, 9:04 a.m.
Message ID <1361091871.31795.116.camel@ted>
Download mbox | patch
Permalink /patch/44749/
State Accepted
Commit e13755a542ca711e34cde637faea890bd18536c1
Headers show

Comments

Richard Purdie - Feb. 17, 2013, 9:04 a.m.
This tells us how long the code hasn't been used for :/

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/classes/package_tar.bbclass b/meta/classes/package_tar.bbclass
index 5e3058d..c4bb62f 100644
--- a/meta/classes/package_tar.bbclass
+++ b/meta/classes/package_tar.bbclass
@@ -24,12 +24,14 @@  python do_package_tar () {
         bb.debug(1, "PACKAGES not defined, nothing to package")
         return
 
+    pkgdest = d.getVar('PKGDEST', True)
+
     bb.utils.mkdirhier(outdir)
     bb.utils.mkdirhier(dvar)
 
     for pkg in packages.split():
         localdata = bb.data.createCopy(d)
-        root = "%s/install/%s" % (workdir, pkg)
+        root = "%s/%s" % (pkgdest, pkg)
 
         overrides = localdata.getVar('OVERRIDES')
         localdata.setVar('OVERRIDES', '%s:%s' % (overrides, pkg))