summaryrefslogtreecommitdiffstats
path: root/meta/classes
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:53:38 +0000
commitab14336a2542579ef0170e2f7add443c33179de1 (patch)
tree62c7d462124484834089d23a21cfc79e049942ad /meta/classes
parentfdd40ce2f6a21cec009e279ec04c89b08d2da2d6 (diff)
downloadpoky-ab14336a2542579ef0170e2f7add443c33179de1.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. (From OE-Core rev: dc06a91144b79a152eb481f6d36f6c328321b7c4) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package_deb.bbclass5
-rw-r--r--meta/classes/package_ipk.bbclass5
2 files changed, 10 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}"
275do_package_write_deb[sstate-outputdirs] = "${DEPLOY_DIR_DEB}" 275do_package_write_deb[sstate-outputdirs] = "${DEPLOY_DIR_DEB}"
276 276
277python do_package_write_deb_setscene () { 277python do_package_write_deb_setscene () {
278 tmpdir = d.getVar('TMPDIR', True)
279
280 if os.access(os.path.join(tmpdir, "stamps", "DEB_PACKAGE_INDEX_CLEAN"),os.R_OK):
281 os.unlink(os.path.join(tmpdir, "stamps", "DEB_PACKAGE_INDEX_CLEAN"))
282
278 sstate_setscene(d) 283 sstate_setscene(d)
279} 284}
280addtask do_package_write_deb_setscene 285addtask do_package_write_deb_setscene
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index 2d8e459b31..73446d6c59 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -424,6 +424,11 @@ do_package_write_ipk[sstate-inputdirs] = "${PKGWRITEDIRIPK}"
424do_package_write_ipk[sstate-outputdirs] = "${DEPLOY_DIR_IPK}" 424do_package_write_ipk[sstate-outputdirs] = "${DEPLOY_DIR_IPK}"
425 425
426python do_package_write_ipk_setscene () { 426python do_package_write_ipk_setscene () {
427 tmpdir = d.getVar('TMPDIR', True)
428
429 if os.access(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN"), os.R_OK):
430 os.unlink(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN"))
431
427 sstate_setscene(d) 432 sstate_setscene(d)
428} 433}
429addtask do_package_write_ipk_setscene 434addtask do_package_write_ipk_setscene