summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2013-12-27 01:51:52 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-02 13:08:40 +0000
commitd8d4b0edb1f24d62694c9a10b50656927f6df0e1 (patch)
treef8ab1fe1a94854b2048873743d33037b606b0174 /bitbake/lib/bb/fetch2/git.py
parentd305a05961eb3b78b784ca1c268e119519acde8c (diff)
downloadpoky-d8d4b0edb1f24d62694c9a10b50656927f6df0e1.tar.gz
bitbake: bitbake: fetcher2: git.py: clean(): remove the .tar.gz.done
There was a problem: $ bitbake xf86-video-omapfb -cfetch && bitbake xf86-video-omapfb -ccleanall The git2_git.pingu.fi.xf86-video-omapfb.tar.gz has been removed from the DL_DIR, but the git2_git.pingu.fi.xf86-video-omapfb.tar.gz.done still exists, this is because the "open(ud.donestamp, 'w').close()" in try_mirror_url() will create the git2_git.xxx.tar.gz.done, but no one removes it (the clean() in fetch2/__init__.py removes the DL_DIR/git2/pkg.done) This only happens on the git fetcher AFAIK. [YOCTO #5688] (Bitbake rev: fb2dc84875eb477661f421b21bc404d4805ce379) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index bd107dbf21..b4b9368d14 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -283,6 +283,7 @@ class Git(FetchMethod):
283 283
284 bb.utils.remove(ud.localpath, True) 284 bb.utils.remove(ud.localpath, True)
285 bb.utils.remove(ud.fullmirror) 285 bb.utils.remove(ud.fullmirror)
286 bb.utils.remove(ud.fullmirror + ".done")
286 287
287 def supports_srcrev(self): 288 def supports_srcrev(self):
288 return True 289 return True