summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass8
1 files changed, 2 insertions, 6 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index e0b76f0510..bb1f4b7533 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -152,12 +152,8 @@ python base_do_fetch() {
152addtask unpack after do_fetch 152addtask unpack after do_fetch
153do_unpack[dirs] = "${WORKDIR}" 153do_unpack[dirs] = "${WORKDIR}"
154 154
155python () { 155do_unpack[cleandirs] = "${@d.getVar('S') if d.getVar('S') != d.getVar('WORKDIR') else os.path.join('${S}', 'patches')}"
156 if d.getVar('S') != d.getVar('WORKDIR'): 156
157 d.setVarFlag('do_unpack', 'cleandirs', '${S}')
158 else:
159 d.setVarFlag('do_unpack', 'cleandirs', os.path.join('${S}', 'patches'))
160}
161python base_do_unpack() { 157python base_do_unpack() {
162 src_uri = (d.getVar('SRC_URI') or "").split() 158 src_uri = (d.getVar('SRC_URI') or "").split()
163 if len(src_uri) == 0: 159 if len(src_uri) == 0: