diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/ChangeLog | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/build.py | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/bitbake/ChangeLog b/bitbake/ChangeLog index 0c7e6d8a8e..4125e03169 100644 --- a/bitbake/ChangeLog +++ b/bitbake/ChangeLog | |||
@@ -10,6 +10,8 @@ Changes in BitBake 1.8.x: | |||
10 | - Handle paths in svn fetcher module parameter | 10 | - Handle paths in svn fetcher module parameter |
11 | - Support the syntax "export VARIABLE" | 11 | - Support the syntax "export VARIABLE" |
12 | - Add bzr fetcher | 12 | - Add bzr fetcher |
13 | - Add support for cleaning directories before a task in the form: | ||
14 | do_taskname[cleandirs] = "dir" | ||
13 | 15 | ||
14 | Changes in Bitbake 1.8.8: | 16 | Changes in Bitbake 1.8.8: |
15 | - Rewrite svn fetcher to make adding extra operations easier | 17 | - Rewrite svn fetcher to make adding extra operations easier |
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index e9a6fc8c61..501f4f8206 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -74,10 +74,13 @@ def exec_func(func, d, dirs = None): | |||
74 | if not body: | 74 | if not body: |
75 | return | 75 | return |
76 | 76 | ||
77 | cleandirs = (data.expand(data.getVarFlag(func, 'cleandirs', d), d) or "").split() | ||
78 | for cdir in cleandirs: | ||
79 | os.system("rm -rf %s" % cdir) | ||
80 | |||
77 | if not dirs: | 81 | if not dirs: |
78 | dirs = (data.getVarFlag(func, 'dirs', d) or "").split() | 82 | dirs = (data.expand(data.getVarFlag(func, 'dirs', d), d) or "").split() |
79 | for adir in dirs: | 83 | for adir in dirs: |
80 | adir = data.expand(adir, d) | ||
81 | mkdirhier(adir) | 84 | mkdirhier(adir) |
82 | 85 | ||
83 | if len(dirs) > 0: | 86 | if len(dirs) > 0: |