From 14dea89521c0c648e8e543388096a6dcd6d4f2e0 Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Wed, 9 Feb 2011 14:30:29 -0800 Subject: fetch2: Correct the clean() mechanism for the fetcher2 code This create a clean() method in each of the fetcher modules and correctly cleans the .done stamp file and lock files Signed-off-by: Saul Wold --- bitbake/lib/bb/fetch2/git.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bitbake/lib/bb/fetch2/git.py') diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 6d99406777..6d82bdc88b 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py @@ -172,6 +172,12 @@ class Git(FetchMethod): runfetchcmd("%s checkout-index -q -f -a" % ud.basecmd, d) return True + def clean(self, ud, d): + """ clean the git directory """ + + bb.utils.remove(ud.localpath, True) + bb.utils.remove(ud.fullmirror) + def supports_srcrev(self): return True -- cgit v1.2.3-54-g00ecf