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:55:30 +0000 |
commit | db2abcd6416608054d66e11e17a9f2204999750e (patch) | |
tree | 912f461fdff9b9fde17e4858862efbfcf97b98f6 /lib/bb/fetch2/git.py | |
parent | e7534cb70a9d4eee841d551fa5c1b104424add22 (diff) | |
download | bitbake-db2abcd6416608054d66e11e17a9f2204999750e.tar.gz |
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
(From Poky rev: 14dea89521c0c648e8e543388096a6dcd6d4f2e0)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/git.py')
-rw-r--r-- | lib/bb/fetch2/git.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py index 6d9940677..6d82bdc88 100644 --- a/lib/bb/fetch2/git.py +++ b/lib/bb/fetch2/git.py @@ -172,6 +172,12 @@ class Git(FetchMethod): runfetchcmd("%s checkout-index -q -f -a" % ud.basecmd, d) return True + def clean(self, ud, d): + """ clean the git directory """ + + bb.utils.remove(ud.localpath, True) + bb.utils.remove(ud.fullmirror) + def supports_srcrev(self): return True |