summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2007-08-16 12:29:23 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2007-08-16 12:29:23 +0000
commit9aaccd09d662a5198a9e6d16a2de66e5b2510470 (patch)
tree8e0c3810e58a4f450b4b48cb5574b67863dfa812
parent8f04875d24f1c1ac817ef993eec74dc3fda55d42 (diff)
downloadbitbake-9aaccd09d662a5198a9e6d16a2de66e5b2510470.tar.gz
svn.py: Handle case where SRCREV=None
-rw-r--r--lib/bb/fetch/svn.py9
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)