diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2014-01-10 18:33:01 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-11 11:50:25 +0000 |
commit | dc06a91144b79a152eb481f6d36f6c328321b7c4 (patch) | |
tree | ab8433636c7bdc69249cb77ad4f9cd0070bd709b /meta/classes/package_deb.bbclass | |
parent | 8d14fbedcee02b723288004ae29a5c29524eec5a (diff) | |
download | openembedded-core-contrib-dc06a91144b79a152eb481f6d36f6c328321b7c4.tar.gz |
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.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index bf9739e099e..d0befade20a 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 |