diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2008-10-27 19:00:27 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2008-10-27 19:28:26 +0000 |
commit | e86a1f1f305d532833fe6f1b321cb22795bea7c6 (patch) | |
tree | c746ea579d0722ab294ed6dc78f3dbd9d93997fe /classes/package_tar.bbclass | |
parent | 6f97a5881773a20ded15041b36c511881c9bc579 (diff) |
classes/package*.bbclass: Remove the build_package_revision function
Based on experience, this function is going to cause massive code readability
issues. We can actually clean up the code more without it so do this instead.
Diffstat (limited to 'classes/package_tar.bbclass')
-rw-r--r-- | classes/package_tar.bbclass | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/classes/package_tar.bbclass b/classes/package_tar.bbclass index 9ce0c98b8b..e5d3f74126 100644 --- a/classes/package_tar.bbclass +++ b/classes/package_tar.bbclass @@ -5,8 +5,7 @@ IMAGE_PKGTYPE ?= "tar" python package_tar_fn () { import os from bb import data - 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), build_package_revision(d))) - fn = bb.data.expand(fn, d) + fn = os.path.join(bb.data.getVar('DEPLOY_DIR_TAR', d, True), bb.data.expand('${PKG}-${PV}-${PR}${DISTRO_PR}.tar.gz', d, True)) bb.data.setVar('PKGFN', fn, d) } @@ -86,7 +85,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), build_package_revision(localdata))) + bb.note("Not creating empty archive for %s" % (pkg, bb.data.expand('${PV}-${PR}${DISTRO_PR}', d, True))) continue ret = os.system("tar -czf %s %s" % (tarfn, '.')) if ret != 0: |