summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/cvs.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-07 12:08:32 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-10 23:37:11 +0000
commit122d3609cdd83d28cc0770195e4aa30bb8737393 (patch)
tree5b0b57f68d70a6cb8a778eeabf325123e7ccc914 /lib/bb/fetch2/cvs.py
parent97dbbae5fa366ce4fa51b62006c42d5e568c6390 (diff)
downloadbitbake-122d3609cdd83d28cc0770195e4aa30bb8737393.tar.gz
bitbake/fetch2: Update forcefetch and mirror handling to clean up, simplfy and bug fix the code
(From Poky rev: 37624b97450f2ba3d6fad3e1e51818486451447e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/cvs.py')
-rw-r--r--lib/bb/fetch2/cvs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bb/fetch2/cvs.py b/lib/bb/fetch2/cvs.py
index b77e742c3..69c31e756 100644
--- a/lib/bb/fetch2/cvs.py
+++ b/lib/bb/fetch2/cvs.py
@@ -65,9 +65,11 @@ class Cvs(FetchMethod):
ud.localfile = data.expand('%s_%s_%s_%s%s%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.tag, ud.date, norecurse, fullpath), d)
- def forcefetch(self, url, ud, d):
+ def need_update(self, url, ud, d):
if (ud.date == "now"):
return True
+ if not os.path.exists(ud.localpath):
+ return True
return False
def download(self, loc, ud, d):