diff options
author | Saul Wold <sgw@linux.intel.com> | 2011-02-09 14:30:29 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-10 23:49:25 +0000 |
commit | 14dea89521c0c648e8e543388096a6dcd6d4f2e0 (patch) | |
tree | ddb73f19d8eeaa659905968ee1de28b9750b5628 /bitbake/lib/bb/fetch | |
parent | f1bbea4ab0c41cf93cd1a2d0d4d05a4ad06a0728 (diff) | |
download | openembedded-core-14dea89521c0c648e8e543388096a6dcd6d4f2e0.tar.gz openembedded-core-14dea89521c0c648e8e543388096a6dcd6d4f2e0.tar.bz2 openembedded-core-14dea89521c0c648e8e543388096a6dcd6d4f2e0.zip |
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 <sgw@linux.intel.com>
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): except OSError: pass raise FetchError(ud.module) + + def clean(self, ud, d): + """ clean the git directory """ + + 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) |