Skip to contentSkip to conversation

classes/package: ensure pkgdata is cleaned out first

PATCH Applied Paul Eggleton 2 participants 2 messages Jul 29, 2012 – Jul 30, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 classes/package: ensure pkgdata is cleaned out first

If do_package needs to be re-run and packages are removed/renamed as a result, we want the corresponding stale pkgdata files to no longer be present; for that we need to ensure all of the old pkgdata files are cleaned out prior to creating the new ones. This is particularly important now we rely on pkgdata more heavily (for complementary packages, license manifest, etc.).

---
 meta/classes/package.bbclass |    1 +
 1 file changed, 1 insertion(+)
meta/classes/package.bbclass +1 -0
index f55b3e0..6142911 100644
@@ -1795,6 +1795,7 @@ addtask package before do_build after do_install
 PACKAGELOCK = "${STAGING_DIR}/package-output.lock"
 SSTATETASKS += "do_package"
 do_package[sstate-name] = "package"
+do_package[cleandirs] = "${PKGDESTWORK}"
 do_package[sstate-plaindirs] = "${PKGD} ${PKGDEST}"
 do_package[sstate-inputdirs] = "${PKGDESTWORK} ${SHLIBSWORKDIR}"
 do_package[sstate-outputdirs] = "${PKGDATA_DIR} ${SHLIBSDIR}"
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 11 lines · Paul Eggleton

If do_package needs to be re-run and packages are removed/renamed as a result, we want the corresponding stale pkgdata files to no longer be present; for that we need to ensure all of the old pkgdata files are cleaned out prior to creating the new ones. This is particularly important now we rely on pkgdata more heavily (for complementary packages, license manifest, etc.).

---
 meta/classes/package.bbclass |    1 +
 1 file changed, 1 insertion(+)

Merged to master, thanks.

Richard