aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/svn.py
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2011-02-09 14:30:29 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-10 23:55:30 +0000
commitdb2abcd6416608054d66e11e17a9f2204999750e (patch)
tree912f461fdff9b9fde17e4858862efbfcf97b98f6 /lib/bb/fetch2/svn.py
parente7534cb70a9d4eee841d551fa5c1b104424add22 (diff)
downloadbitbake-db2abcd6416608054d66e11e17a9f2204999750e.tar.gz
bitbake-db2abcd6416608054d66e11e17a9f2204999750e.tar.bz2
bitbake-db2abcd6416608054d66e11e17a9f2204999750e.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 (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/svn.py')
-rw-r--r--lib/bb/fetch2/svn.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/bb/fetch2/svn.py b/lib/bb/fetch2/svn.py
index 4ab643bcf..d05dc0276 100644
--- a/lib/bb/fetch2/svn.py
+++ b/lib/bb/fetch2/svn.py
@@ -138,6 +138,13 @@ class Svn(FetchMethod):
# tar them up to a defined filename
runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, ud.module), d, cleanup = [ud.localpath])
+ def clean(self, ud, d):
+ """ Clean SVN specific files and dirs """
+
+ bb.utils.remove(ud.localpath)
+ bb.utils.remove(ud.moddir, True)
+
+
def supports_srcrev(self):
return True