summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-02 11:53:26 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-02 16:13:47 +0000
commit5fe5e6a15f26f23f0c5b863fafad7a0d382a55e2 (patch)
treeb8ace6ce101278d7a4dd610fabb2af70ee9ca1c9
parentf0fc47aea37793a62c43f10eea27ca014c420924 (diff)
downloadopenembedded-core-5fe5e6a15f26f23f0c5b863fafad7a0d382a55e2.tar.gz
openembedded-core-5fe5e6a15f26f23f0c5b863fafad7a0d382a55e2.tar.bz2
openembedded-core-5fe5e6a15f26f23f0c5b863fafad7a0d382a55e2.zip
base.bbclass: If unpacking again, wipe out ${S}/patches
If we unpack again, its assumed the data in any patches directory is invalid since do_patch will run again. This ensures old patch data doesn't get reused in a confused way. Ideally we should probably wipe out ${S} here but that is probably a change for another time. [YOCTO #2043 partially] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/base.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index a76fe55b89..39d3e78e9b 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -94,6 +94,7 @@ python base_do_fetch() {
addtask unpack after do_fetch
do_unpack[dirs] = "${WORKDIR}"
+do_unpack[cleandirs] = "${S}/patches"
python base_do_unpack() {
src_uri = (d.getVar('SRC_URI', True) or "").split()
if len(src_uri) == 0: