diff options
-rw-r--r-- | meta/classes/base.bbclass | 8 |
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() { | |||
152 | addtask unpack after do_fetch | 152 | addtask unpack after do_fetch |
153 | do_unpack[dirs] = "${WORKDIR}" | 153 | do_unpack[dirs] = "${WORKDIR}" |
154 | 154 | ||
155 | python () { | 155 | do_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 | } | ||
161 | python base_do_unpack() { | 157 | python 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: |