diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-07-29 06:41:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-29 10:16:16 +0100 |
commit | 22965c47152c801fada815e0b165050e8e7f9549 (patch) | |
tree | debfe56c6960fd6a179aebdf77d4c9f6342bd49a | |
parent | 3d164f74fdb994c08c7e3f6d93cd4e1959b4eb7e (diff) | |
download | poky-22965c47152c801fada815e0b165050e8e7f9549.tar.gz |
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.).
(From OE-Core rev: 5dee47b476a6f715ab02af5e758441a2a934eea3)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/package.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index f55b3e0a65..6142911cff 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -1795,6 +1795,7 @@ addtask package before do_build after do_install | |||
1795 | PACKAGELOCK = "${STAGING_DIR}/package-output.lock" | 1795 | PACKAGELOCK = "${STAGING_DIR}/package-output.lock" |
1796 | SSTATETASKS += "do_package" | 1796 | SSTATETASKS += "do_package" |
1797 | do_package[sstate-name] = "package" | 1797 | do_package[sstate-name] = "package" |
1798 | do_package[cleandirs] = "${PKGDESTWORK}" | ||
1798 | do_package[sstate-plaindirs] = "${PKGD} ${PKGDEST}" | 1799 | do_package[sstate-plaindirs] = "${PKGD} ${PKGDEST}" |
1799 | do_package[sstate-inputdirs] = "${PKGDESTWORK} ${SHLIBSWORKDIR}" | 1800 | do_package[sstate-inputdirs] = "${PKGDESTWORK} ${SHLIBSWORKDIR}" |
1800 | do_package[sstate-outputdirs] = "${PKGDATA_DIR} ${SHLIBSDIR}" | 1801 | do_package[sstate-outputdirs] = "${PKGDATA_DIR} ${SHLIBSDIR}" |