diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2014-01-06 04:52:35 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-07 13:42:55 +0000 |
commit | 1d3a139016f4403cf406cb6e96d95e665945fe93 (patch) | |
tree | 90dfd181bc09f6785a6a2a14167f8d7d3fe323a3 /bitbake | |
parent | 4722965f823da72cb3300c432d523c9f213b952d (diff) | |
download | poky-1d3a139016f4403cf406cb6e96d95e665945fe93.tar.gz |
bitbake: bitbake/lib/bb/build.py: fix the task flags cleandirs
The user manual said:
'cleandirs' - directories which should created before the task runs but should be empty
But it only removes the dir, doesn't create it
[YOCTO #5703]
(Bitbake rev: 0636797d75874ce4577f29011d69c56a4c6b9e89)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/build.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 1524da0049..3aa63758c1 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -154,6 +154,7 @@ def exec_func(func, d, dirs = None): | |||
154 | if cleandirs: | 154 | if cleandirs: |
155 | for cdir in d.expand(cleandirs).split(): | 155 | for cdir in d.expand(cleandirs).split(): |
156 | bb.utils.remove(cdir, True) | 156 | bb.utils.remove(cdir, True) |
157 | bb.utils.mkdirhier(cdir) | ||
157 | 158 | ||
158 | if dirs is None: | 159 | if dirs is None: |
159 | dirs = flags.get('dirs') | 160 | dirs = flags.get('dirs') |