summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/svn.py
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-08-20 07:48:43 +0000
committerRichard Purdie <richard@openedhand.com>2007-08-20 07:48:43 +0000
commitd8bfa5c6eff1cff34895304a33be671fb141084e (patch)
tree8f63f2cad401f42f5dd30930b0f042aa9c5bdaf8 /bitbake/lib/bb/fetch/svn.py
parente68823a20c6e3b629c947bc7e329e5ea71a9860c (diff)
downloadpoky-d8bfa5c6eff1cff34895304a33be671fb141084e.tar.gz
bitbake: Sync with 1.8.8 release
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2513 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb/fetch/svn.py')
-rw-r--r--bitbake/lib/bb/fetch/svn.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch/svn.py b/bitbake/lib/bb/fetch/svn.py
index ca12efe158..af8543ab34 100644
--- a/bitbake/lib/bb/fetch/svn.py
+++ b/bitbake/lib/bb/fetch/svn.py
@@ -74,11 +74,14 @@ class Svn(Fetch):
74 ud.revision = "" 74 ud.revision = ""
75 else: 75 else:
76 rev = data.getVar("SRCREV", d, 0) 76 rev = data.getVar("SRCREV", d, 0)
77 if "get_srcrev" in rev: 77 if rev and "get_srcrev" in rev:
78 ud.revision = self.latest_revision(url, ud, d) 78 ud.revision = self.latest_revision(url, ud, d)
79 else: 79 ud.date = ""
80 elif rev:
80 ud.revision = rev 81 ud.revision = rev
81 ud.date = "" 82 ud.date = ""
83 else:
84 ud.revision = ""
82 85
83 ud.localfile = data.expand('%s_%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision, ud.date), d) 86 ud.localfile = data.expand('%s_%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision, ud.date), d)
84 87