diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/hg.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/hg.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py index 80a155108c..0ba84330a5 100644 --- a/bitbake/lib/bb/fetch2/hg.py +++ b/bitbake/lib/bb/fetch2/hg.py | |||
@@ -64,14 +64,8 @@ class Hg(Fetch): | |||
64 | def localpath(self, url, ud, d): | 64 | def localpath(self, url, ud, d): |
65 | if 'rev' in ud.parm: | 65 | if 'rev' in ud.parm: |
66 | ud.revision = ud.parm['rev'] | 66 | ud.revision = ud.parm['rev'] |
67 | else: | 67 | elif not ud.revision: |
68 | tag = Fetch.srcrev_internal_helper(ud, d) | 68 | ud.revision = self.latest_revision(url, ud, d) |
69 | if tag is True: | ||
70 | ud.revision = self.latest_revision(url, ud, d) | ||
71 | elif tag: | ||
72 | ud.revision = tag | ||
73 | else: | ||
74 | ud.revision = self.latest_revision(url, ud, d) | ||
75 | 69 | ||
76 | ud.localfile = data.expand('%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision), d) | 70 | ud.localfile = data.expand('%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision), d) |
77 | 71 | ||