Skip to contentSkip to conversation

bitbake: fix the task flags cleandirs

PATCH New Robert Yang 1 participant 3 messages Jan 6, 2014

lore
Share & tools
lore
#0 lore raw

cover bitbake: fix the task flags cleandirs

The following changes since commit c062a4971023c246c15af622d3c251e7adeb0d99:

fetch2/__init__.py: let try_mirror_url return correct value (2014-01-06 01:04:23 -0500)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib rbt/fetch
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=rbt/fetch

Robert Yang (2):
bitbake/lib/bb/build.py: fix the task flags cleandirs
bitbake: usermanual.xml: fix a typo

 bitbake/doc/manual/usermanual.xml |    2 +-
 bitbake/lib/bb/build.py           |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/2 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/lib/bb/build.py |    1 +
 1 file changed, 1 insertion(+)
bitbake/lib/bb/build.py +1 -0
index 1524da0..3aa6375 100644
@@ -154,6 +154,7 @@ def exec_func(func, d, dirs = None):
     if cleandirs:
         for cdir in d.expand(cleandirs).split():
             bb.utils.remove(cdir, True)
+            bb.utils.mkdirhier(cdir)
 
     if dirs is None:
         dirs = flags.get('dirs')
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH 2/2 bitbake: usermanual.xml: fix a typo

In reply to Robert Yang

Fixed:
"should created" -> "should be created"

[YOCTO #5703]

---
 bitbake/doc/manual/usermanual.xml |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/doc/manual/usermanual.xml +1 -1
index 6781a71..749ee98 100644
@@ -241,7 +241,7 @@ addtask printdate before do_build</screen></para>
                 <title>Task Flags</title>
                 <para>Tasks support a number of flags which control various functionality of the task. These are as follows:</para>
                 <para>'dirs' - directories which should be created before the task runs</para>
-                <para>'cleandirs' - directories which should created before the task runs but should be empty</para>
+                <para>'cleandirs' - directories which should be created before the task runs but should be empty</para>
                 <para>'noexec' - marks the tasks as being empty and no execution required. These are used as dependency placeholders or used when added tasks need to be subsequently disabled.</para>
                 <para>'nostamp' - don't generate a stamp file for a task. This means the task is always rexecuted.</para>
                 <para>'fakeroot' - this task needs to be run in a fakeroot environment, obtained by adding the variables in FAKEROOTENV to the environment.</para>
Signature · 1 line
1.7.10.4