diff options
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r-- | bitbake/lib/bb/build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index c6104a475e..c08ef8904d 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -195,13 +195,13 @@ def exec_func(func, d, dirs = None, pythonexception=False): | |||
195 | oldcwd = None | 195 | oldcwd = None |
196 | 196 | ||
197 | flags = d.getVarFlags(func) | 197 | flags = d.getVarFlags(func) |
198 | cleandirs = flags.get('cleandirs') | 198 | cleandirs = flags.get('cleandirs') if flags else None |
199 | if cleandirs: | 199 | if cleandirs: |
200 | for cdir in d.expand(cleandirs).split(): | 200 | for cdir in d.expand(cleandirs).split(): |
201 | bb.utils.remove(cdir, True) | 201 | bb.utils.remove(cdir, True) |
202 | bb.utils.mkdirhier(cdir) | 202 | bb.utils.mkdirhier(cdir) |
203 | 203 | ||
204 | if dirs is None: | 204 | if flags and dirs is None: |
205 | dirs = flags.get('dirs') | 205 | dirs = flags.get('dirs') |
206 | if dirs: | 206 | if dirs: |
207 | dirs = d.expand(dirs).split() | 207 | dirs = d.expand(dirs).split() |