summaryrefslogtreecommitdiff
path: root/meta/classes/package_deb.bbclass
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2014-01-10 18:33:01 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-11 11:50:25 +0000
commitdc06a91144b79a152eb481f6d36f6c328321b7c4 (patch)
treeab8433636c7bdc69249cb77ad4f9cd0070bd709b /meta/classes/package_deb.bbclass
parent8d14fbedcee02b723288004ae29a5c29524eec5a (diff)
downloadopenembedded-core-dc06a91144b79a152eb481f6d36f6c328321b7c4.tar.gz
openembedded-core-dc06a91144b79a152eb481f6d36f6c328321b7c4.tar.bz2
openembedded-core-dc06a91144b79a152eb481f6d36f6c328321b7c4.zip
package_(deb|ipk).bbclass: remove the stamp when creating package from cache
If the packages are created from cache, we need to remove the stamp so that we re-generate the index files at do_rootfs time. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Diffstat (limited to 'meta/classes/package_deb.bbclass')
-rw-r--r--meta/classes/package_deb.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index bf9739e099..d0befade20 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -275,6 +275,11 @@ do_package_write_deb[sstate-inputdirs] = "${PKGWRITEDIRDEB}"
do_package_write_deb[sstate-outputdirs] = "${DEPLOY_DIR_DEB}"
python do_package_write_deb_setscene () {
+ tmpdir = d.getVar('TMPDIR', True)
+
+ if os.access(os.path.join(tmpdir, "stamps", "DEB_PACKAGE_INDEX_CLEAN"),os.R_OK):
+ os.unlink(os.path.join(tmpdir, "stamps", "DEB_PACKAGE_INDEX_CLEAN"))
+
sstate_setscene(d)
}
addtask do_package_write_deb_setscene