diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-07 12:08:32 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-07 16:52:42 +0000 |
commit | 37624b97450f2ba3d6fad3e1e51818486451447e (patch) | |
tree | 6d5286aeb128da853f829ee28923005fb29405fe /bitbake/lib/bb/fetch2/svk.py | |
parent | 1d3fdc85c64b07a228bcf2a370024c250f6e6623 (diff) | |
download | poky-37624b97450f2ba3d6fad3e1e51818486451447e.tar.gz |
bitbake/fetch2: Update forcefetch and mirror handling to clean up, simplfy and bug fix the code
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/svk.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/svk.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/svk.py b/bitbake/lib/bb/fetch2/svk.py index 70f72c80ab..117a22f438 100644 --- a/bitbake/lib/bb/fetch2/svk.py +++ b/bitbake/lib/bb/fetch2/svk.py | |||
@@ -53,8 +53,12 @@ class Svk(FetchMethod): | |||
53 | 53 | ||
54 | ud.localfile = data.expand('%s_%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision, ud.date), d) | 54 | ud.localfile = data.expand('%s_%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision, ud.date), d) |
55 | 55 | ||
56 | def forcefetch(self, url, ud, d): | 56 | def need_update(self, url, ud, d): |
57 | return ud.date == "now" | 57 | if ud.date == "now": |
58 | return True | ||
59 | if not os.path.exists(ud.localpath): | ||
60 | return True | ||
61 | return False | ||
58 | 62 | ||
59 | def download(self, loc, ud, d): | 63 | def download(self, loc, ud, d): |
60 | """Fetch urls""" | 64 | """Fetch urls""" |