summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/svn.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/svn.py')
-rw-r--r--bitbake/lib/bb/fetch2/svn.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/bitbake/lib/bb/fetch2/svn.py b/bitbake/lib/bb/fetch2/svn.py
index 5ff064ebf3..267c9bb7e6 100644
--- a/bitbake/lib/bb/fetch2/svn.py
+++ b/bitbake/lib/bb/fetch2/svn.py
@@ -47,7 +47,7 @@ class Svn(Fetch):
47 init svn specific variable within url data 47 init svn specific variable within url data
48 """ 48 """
49 if not "module" in ud.parm: 49 if not "module" in ud.parm:
50 raise MissingParameterError("svn method needs a 'module' parameter") 50 raise MissingParameterError('module', ud.url)
51 51
52 ud.module = ud.parm["module"] 52 ud.module = ud.parm["module"]
53 53
@@ -118,7 +118,7 @@ class Svn(Fetch):
118 elif command is "update": 118 elif command is "update":
119 svncmd = "%s update %s" % (basecmd, " ".join(options)) 119 svncmd = "%s update %s" % (basecmd, " ".join(options))
120 else: 120 else:
121 raise FetchError("Invalid svn command %s" % command) 121 raise FetchError("Invalid svn command %s" % command, ud.url)
122 122
123 if svn_rsh: 123 if svn_rsh:
124 svncmd = "svn_RSH=\"%s\" %s" % (svn_rsh, svncmd) 124 svncmd = "svn_RSH=\"%s\" %s" % (svn_rsh, svncmd)
@@ -156,15 +156,7 @@ class Svn(Fetch):
156 156
157 os.chdir(ud.pkgdir) 157 os.chdir(ud.pkgdir)
158 # tar them up to a defined filename 158 # tar them up to a defined filename
159 try: 159 runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, ud.module), d, cleanup = [ud.localpath])
160 runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, ud.module), d)
161 except:
162 t, v, tb = sys.exc_info()
163 try:
164 os.unlink(ud.localpath)
165 except OSError:
166 pass
167 raise t, v, tb
168 160
169 def supports_srcrev(self): 161 def supports_srcrev(self):
170 return True 162 return True