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/cvs.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bitbake/lib/bb/fetch2/cvs.py') diff --git a/bitbake/lib/bb/fetch2/cvs.py b/bitbake/lib/bb/fetch2/cvs.py index 3cd28b1fd5..ae03daf236 100644 --- a/bitbake/lib/bb/fetch2/cvs.py +++ b/bitbake/lib/bb/fetch2/cvs.py @@ -167,3 +167,15 @@ class Cvs(FetchMethod): runfetchcmd(cmd, d, cleanup = [ud.localpath]) + def clean(self, ud, d): + """ Clean CVS Files and tarballs """ + + pkg = data.expand('${PN}', d) + localdata = data.createCopy(d) + data.setVar('OVERRIDES', "cvs:%s" % data.getVar('OVERRIDES', localdata), localdata) + data.update_data(localdata) + pkgdir = os.path.join(data.expand('${CVSDIR}', localdata), pkg) + + bb.utils.remove(pkgdir, True) + bb.utils.remove(ud.localpath) + -- cgit v1.2.3-54-g00ecf