]> code.ossystems Code Review - openembedded-core.git/commitdiff
package_(deb|ipk).bbclass: remove the stamp when creating package from cache
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Fri, 10 Jan 2014 16:33:01 +0000 (18:33 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Feb 2014 11:50:25 +0000 (11:50 +0000)
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>
meta/classes/package_deb.bbclass
meta/classes/package_ipk.bbclass

index bf9739e099ed42d3b226fadaa7b1d1feca5375c9..d0befade20ae4a5af8495bcb897d935f80a80857 100644 (file)
@@ -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
index 2d8e459b3172228231bb4ac58722ebf284a2708c..73446d6c59d1201d788110b87b5a1313f86c5aff 100644 (file)
@@ -424,6 +424,11 @@ do_package_write_ipk[sstate-inputdirs] = "${PKGWRITEDIRIPK}"
 do_package_write_ipk[sstate-outputdirs] = "${DEPLOY_DIR_IPK}"
 
 python do_package_write_ipk_setscene () {
+    tmpdir = d.getVar('TMPDIR', True)
+
+    if os.access(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN"), os.R_OK):
+        os.unlink(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN"))
+
     sstate_setscene(d)
 }
 addtask do_package_write_ipk_setscene