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/svn.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bitbake/lib/bb/fetch2/svn.py') diff --git a/bitbake/lib/bb/fetch2/svn.py b/bitbake/lib/bb/fetch2/svn.py index 4ab643bcf7..d05dc02765 100644 --- a/bitbake/lib/bb/fetch2/svn.py +++ b/bitbake/lib/bb/fetch2/svn.py @@ -138,6 +138,13 @@ class Svn(FetchMethod): # tar them up to a defined filename runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, ud.module), d, cleanup = [ud.localpath]) + def clean(self, ud, d): + """ Clean SVN specific files and dirs """ + + bb.utils.remove(ud.localpath) + bb.utils.remove(ud.moddir, True) + + def supports_srcrev(self): return True -- cgit v1.2.3