diff options
author | Lianhao Lu <lianhao.lu@intel.com> | 2011-05-19 10:17:43 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-27 17:07:57 +0100 |
commit | c2872315905fcdf6e4bf11fe96e5ca62af3475f8 (patch) | |
tree | 6d964e096e359533beac5e17e72431ebabc220d0 /meta/classes/package_tar.bbclass | |
parent | b1f6120c04731d3d66f322ce550b0d223c118dab (diff) | |
download | openembedded-core-contrib-c2872315905fcdf6e4bf11fe96e5ca62af3475f8.tar.gz |
classes/package_xxx.class: Use PKGE/PKGV/PKGR.
Use PKGE/PKGV/PKGR to build various package feed in tasks of pacakge_write_xxx.
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Diffstat (limited to 'meta/classes/package_tar.bbclass')
-rw-r--r-- | meta/classes/package_tar.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/package_tar.bbclass b/meta/classes/package_tar.bbclass index e546eb7fd82..a806e4514be 100644 --- a/meta/classes/package_tar.bbclass +++ b/meta/classes/package_tar.bbclass @@ -3,7 +3,7 @@ inherit package IMAGE_PKGTYPE ?= "tar" python package_tar_fn () { - fn = os.path.join(bb.data.getVar('DEPLOY_DIR_TAR', d), "%s-%s-%s.tar.gz" % (bb.data.getVar('PKG', d), bb.data.getVar('PV', d), bb.data.getVar('PR', d))) + fn = os.path.join(bb.data.getVar('DEPLOY_DIR_TAR', d), "%s-%s-%s.tar.gz" % (bb.data.getVar('PKG', d), bb.data.getVar('PKGV', d), bb.data.getVar('PKGR', d))) fn = bb.data.expand(fn, d) bb.data.setVar('PKGFN', fn, d) } @@ -83,7 +83,7 @@ python do_package_tar () { os.chdir(root) from glob import glob if not glob('*'): - bb.note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PV', localdata, 1), bb.data.getVar('PR', localdata, 1))) + bb.note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PKGV', localdata, 1), bb.data.getVar('PKGR', localdata, 1))) continue ret = os.system("tar -czf %s %s" % (tarfn, '.')) if ret != 0: |