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/fetch2/svn.py | |
parent | f1bbea4ab0c41cf93cd1a2d0d4d05a4ad06a0728 (diff) | |
download | poky-14dea89521c0c648e8e543388096a6dcd6d4f2e0.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
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/fetch2/svn.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/svn.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/svn.py b/bitbake/lib/bb/fetch2/svn.py index 4ab643bcf7..d05dc02765 100644 --- a/bitbake/lib/bb/fetch2/svn.py +++ b/bitbake/lib/bb/fetch2/svn.py | |||
@@ -138,6 +138,13 @@ class Svn(FetchMethod): | |||
138 | # tar them up to a defined filename | 138 | # tar them up to a defined filename |
139 | runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, ud.module), d, cleanup = [ud.localpath]) | 139 | runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, ud.module), d, cleanup = [ud.localpath]) |
140 | 140 | ||
141 | def clean(self, ud, d): | ||
142 | """ Clean SVN specific files and dirs """ | ||
143 | |||
144 | bb.utils.remove(ud.localpath) | ||
145 | bb.utils.remove(ud.moddir, True) | ||
146 | |||
147 | |||
141 | def supports_srcrev(self): | 148 | def supports_srcrev(self): |
142 | return True | 149 | return True |
143 | 150 | ||