diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2006-11-12 15:30:35 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2006-11-12 15:30:35 +0000 |
commit | ab6bc07a319278a1b61ab58dc660ad7e9508542a (patch) | |
tree | dd5a19cd00a87be24286ff5c20069d57a6531f1e /lib/bb/fetch/svn.py | |
parent | 3f4f2ae322ba807b0729f33f3490cf77acd081f9 (diff) | |
download | bitbake-ab6bc07a319278a1b61ab58dc660ad7e9508542a.tar.gz |
fetchers: Only call createCopy and update_data after checking if the download already exists. Refactor parameters to wget's fetch_uri and make md5 a global urldata option.
Diffstat (limited to 'lib/bb/fetch/svn.py')
-rw-r--r-- | lib/bb/fetch/svn.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bb/fetch/svn.py b/lib/bb/fetch/svn.py index d788c82f0..a88617eb4 100644 --- a/lib/bb/fetch/svn.py +++ b/lib/bb/fetch/svn.py @@ -58,10 +58,6 @@ class Svn(Fetch): def go(self, loc, ud, d): """Fetch url""" - localdata = data.createCopy(d) - data.setVar('OVERRIDES', "svn:%s" % data.getVar('OVERRIDES', localdata), localdata) - data.update_data(localdata) - # setup svn options options = [] @@ -86,6 +82,10 @@ class Svn(Fetch): elif ud.date != "now": options.append("-r {%s}" % ud.date) + localdata = data.createCopy(d) + data.setVar('OVERRIDES', "svn:%s" % data.getVar('OVERRIDES', localdata), localdata) + data.update_data(localdata) + data.setVar('SVNROOT', "%s://%s/%s" % (proto, svnroot, ud.module), localdata) data.setVar('SVNCOOPTS', " ".join(options), localdata) data.setVar('SVNMODULE', ud.module, localdata) |