diff options
Diffstat (limited to 'bitbake/lib/bb/fetch/svn.py')
-rw-r--r-- | bitbake/lib/bb/fetch/svn.py | 9 |
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 | ||