diff options
Diffstat (limited to 'bitbake/lib/bb/fetch')
-rw-r--r-- | bitbake/lib/bb/fetch/cvs.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch/cvs.py b/bitbake/lib/bb/fetch/cvs.py index 0edb794b04..7d0ccf2134 100644 --- a/bitbake/lib/bb/fetch/cvs.py +++ b/bitbake/lib/bb/fetch/cvs.py | |||
@@ -170,3 +170,14 @@ class Cvs(Fetch): | |||
170 | except OSError: | 170 | except OSError: |
171 | pass | 171 | pass |
172 | raise FetchError(ud.module) | 172 | raise FetchError(ud.module) |
173 | |||
174 | def clean(self, ud, d): | ||
175 | """ clean the git directory """ | ||
176 | |||
177 | pkg = data.expand('${PN}', d) | ||
178 | localdata = data.createCopy(d) | ||
179 | data.setVar('OVERRIDES', "cvs:%s" % data.getVar('OVERRIDES', localdata), localdata) | ||
180 | data.update_data(localdata) | ||
181 | pkgdir = os.path.join(data.expand('${CVSDIR}', localdata), pkg) | ||
182 | bb.utils.remove(pkgdir, True) | ||
183 | bb.utils.remove(ud.localpath) | ||