diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/hg.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/hg.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py index d186b009dd..ac5825baa9 100644 --- a/bitbake/lib/bb/fetch2/hg.py +++ b/bitbake/lib/bb/fetch2/hg.py | |||
@@ -64,9 +64,13 @@ class Hg(FetchMethod): | |||
64 | 64 | ||
65 | ud.localfile = data.expand('%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision), d) | 65 | ud.localfile = data.expand('%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision), d) |
66 | 66 | ||
67 | def forcefetch(self, url, ud, d): | 67 | def need_update(self, url, ud, d): |
68 | revTag = ud.parm.get('rev', 'tip') | 68 | revTag = ud.parm.get('rev', 'tip') |
69 | return revTag == "tip" | 69 | if revTag == "tip": |
70 | return True | ||
71 | if not os.path.exists(ud.localpath): | ||
72 | return True | ||
73 | return False | ||
70 | 74 | ||
71 | def _buildhgcommand(self, ud, d, command): | 75 | def _buildhgcommand(self, ud, d, command): |
72 | """ | 76 | """ |