Patchwork [bitbake-devel,2/2] bitbake: fetcher2: clean(): remove the .tar.gz.done

mail settings
Submitter Robert Yang
Date Dec. 27, 2013, 6:51 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/63751/
State New
Headers show


Robert Yang - Dec. 27, 2013, 6:51 a.m.
There was a problem:

$ bitbake xf86-video-omapfb -cfetch && bitbake xf86-video-omapfb -ccleanall

The has been removed from the
DL_DIR, but the still exists,
this is because the "open(ud.donestamp, 'w').close()" in try_mirror_url() will
create the, but no one removes it (the clean() in
fetch2/ removes the DL_DIR/git2/pkg.done)

This only happens on the git fetcher AFAIK.

[YOCTO #5688]

Signed-off-by: Robert Yang <>
 bitbake/lib/bb/fetch2/ |    1 +
 1 file changed, 1 insertion(+)


diff --git a/bitbake/lib/bb/fetch2/ b/bitbake/lib/bb/fetch2/
index bd107db..b4b9368 100644
--- a/bitbake/lib/bb/fetch2/
+++ b/bitbake/lib/bb/fetch2/
@@ -283,6 +283,7 @@  class Git(FetchMethod):
         bb.utils.remove(ud.localpath, True)
+        bb.utils.remove(ud.fullmirror + ".done")
     def supports_srcrev(self):
         return True