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

mail settings
Submitter Robert Yang
Date Dec. 27, 2013, 6:51 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/63749/
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

Everything should be removed, but the
0006-omapfb-port-to-new-xserver-video-API.patch.done still exists in the
DL_DIR, this is because the clean() in the fetch2/ skips
removing the local file, so that it will skip removing the .done.

The local file (file://) isn't needed to be removed since it is not
downloaded into DL_DIR, but the .done should be removed, this patch will
remove the .done, and it doesn't remove anything else since the clean()
in does nothing.

[YOCTO #5687]

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


diff --git a/bitbake/lib/bb/fetch2/ b/bitbake/lib/bb/fetch2/
index 8fdf59c..1d89aaf 100644
--- a/bitbake/lib/bb/fetch2/
+++ b/bitbake/lib/bb/fetch2/
@@ -1497,7 +1497,7 @@  class Fetch(object):
             ud = self.ud[url]
-            if not ud.localfile or self.localpath is None:
+            if not ud.localfile and ud.localpath is None:
             if ud.lockfile: