diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2007-07-31 15:11:39 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2007-07-31 15:11:39 +0000 |
commit | 9ac1188101bcf969761d9414d72c579cefdbb900 (patch) | |
tree | 43f4f5a92aae8b50e142edf3e34e7f0f0a2a7904 | |
parent | 368b022088bdfd48d3347f83b5929a4c1915eaa3 (diff) | |
download | bitbake-9ac1188101bcf969761d9414d72c579cefdbb900.tar.gz |
Various fetcher bugfixes
-rw-r--r-- | lib/bb/fetch/__init__.py | 2 | ||||
-rw-r--r-- | lib/bb/fetch/svn.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/bb/fetch/__init__.py b/lib/bb/fetch/__init__.py index 38527cdda..c985d31a6 100644 --- a/lib/bb/fetch/__init__.py +++ b/lib/bb/fetch/__init__.py @@ -178,7 +178,7 @@ def get_srcrev(d): """ urldata, pd, fn = getdata(d) if len(urldata) == 0: - src_uri = bb.data.getVar('SRC_URI', d, 1).split(" ") + src_uri = bb.data.getVar('SRC_URI', d, 1).split() urldata = init(src_uri, d, True) scms = [] diff --git a/lib/bb/fetch/svn.py b/lib/bb/fetch/svn.py index d2fef1d4e..e16ec4ba7 100644 --- a/lib/bb/fetch/svn.py +++ b/lib/bb/fetch/svn.py @@ -61,7 +61,6 @@ class Svn(Fetch): ud.date = ud.parm['date'] ud.revision = "" else: - ud.revision = self.latest_revision(url, ud, d) # # ***Nasty hack*** # If DATE in unexpanded PV, use ud.date (which is set from SRCDATE) @@ -71,6 +70,7 @@ class Svn(Fetch): if "DATE" in pv: ud.revision = "" else: + ud.revision = self.latest_revision(url, ud, d) ud.date = "" ud.localfile = data.expand('%s_%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision, ud.date), d) @@ -105,7 +105,7 @@ class Svn(Fetch): options.append("--password %s" % ud.pswd) if command is "info": - svncmd = "%s info %s %s://%s/%s" % (basecmd, " ".join(options), proto, svnroot, ud.module) + svncmd = "%s info %s %s://%s/%s/" % (basecmd, " ".join(options), proto, svnroot, ud.module) else: if ud.revision: options.append("-r %s" % ud.revision) |