diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2007-08-16 12:29:23 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2007-08-16 12:29:23 +0000 |
commit | 09050012d7584837f48db42d596bfacaa7f540f5 (patch) | |
tree | cd5f999a9ade99a0307c12b869f6cc90c57d8e62 /lib/bb | |
parent | 44920dce81d51fe72fd52356dc4232cf3e476fc8 (diff) | |
download | bitbake-09050012d7584837f48db42d596bfacaa7f540f5.tar.gz |
svn.py: Handle case where SRCREV=None
Diffstat (limited to 'lib/bb')
-rw-r--r-- | lib/bb/fetch/svn.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/bb/fetch/svn.py b/lib/bb/fetch/svn.py index ca12efe15..d5a412293 100644 --- a/lib/bb/fetch/svn.py +++ b/lib/bb/fetch/svn.py @@ -74,11 +74,14 @@ class Svn(Fetch): ud.revision = "" else: rev = data.getVar("SRCREV", d, 0) - if "get_srcrev" in rev: + if rev and "get_srcrev" in rev: ud.revision = self.latest_revision(url, ud, d) - else: + ud.date = "" + else if rev: ud.revision = rev - ud.date = "" + ud.date = "" + else: + ud.revision = "" ud.localfile = data.expand('%s_%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision, ud.date), d) |