summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
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:22:48 +0000
commit93b3692ac810f7129f6561b446847800aecaf352 (patch)
tree0de82de9768a9ad6dc9cb698a871526617cbd917 /meta/classes/base.bbclass
parentd1168cc12a7640b509aa3b49a4e25be794c61875 (diff)
downloadpoky-93b3692ac810f7129f6561b446847800aecaf352.tar.gz
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] (From OE-Core rev: 5fe5e6a15f26f23f0c5b863fafad7a0d382a55e2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-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() {
94 94
95addtask unpack after do_fetch 95addtask unpack after do_fetch
96do_unpack[dirs] = "${WORKDIR}" 96do_unpack[dirs] = "${WORKDIR}"
97do_unpack[cleandirs] = "${S}/patches"
97python base_do_unpack() { 98python base_do_unpack() {
98 src_uri = (d.getVar('SRC_URI', True) or "").split() 99 src_uri = (d.getVar('SRC_URI', True) or "").split()
99 if len(src_uri) == 0: 100 if len(src_uri) == 0: