package_tar: Fix so it actually works
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 17 Feb 2013 09:04:31 +0000 (09:04 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 17 Feb 2013 22:32:04 +0000 (22:32 +0000)
This tells us how long the code hasn't been used for :/

(From OE-Core rev: cd503c7f7fec6d177209832f73cec9c5d490be6b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_tar.bbclass

index 56bca89..c4bb62f 100644 (file)
@@ -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))