diff options
-rw-r--r-- | lib/bb/build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py index c6104a475..c08ef8904 100644 --- a/lib/bb/build.py +++ b/lib/bb/build.py @@ -195,13 +195,13 @@ def exec_func(func, d, dirs = None, pythonexception=False): oldcwd = None flags = d.getVarFlags(func) - cleandirs = flags.get('cleandirs') + cleandirs = flags.get('cleandirs') if flags else None if cleandirs: for cdir in d.expand(cleandirs).split(): bb.utils.remove(cdir, True) bb.utils.mkdirhier(cdir) - if dirs is None: + if flags and dirs is None: dirs = flags.get('dirs') if dirs: dirs = d.expand(dirs).split() |