aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/cvs.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bb/fetch2/cvs.py')
-rw-r--r--lib/bb/fetch2/cvs.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/bb/fetch2/cvs.py b/lib/bb/fetch2/cvs.py
index 3cd28b1fd..ae03daf23 100644
--- a/lib/bb/fetch2/cvs.py
+++ b/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)
+