From 37624b97450f2ba3d6fad3e1e51818486451447e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 7 Feb 2011 12:08:32 +0000 Subject: bitbake/fetch2: Update forcefetch and mirror handling to clean up, simplfy and bug fix the code Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/cvs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/fetch2/cvs.py') diff --git a/bitbake/lib/bb/fetch2/cvs.py b/bitbake/lib/bb/fetch2/cvs.py index b77e742c33..69c31e7561 100644 --- a/bitbake/lib/bb/fetch2/cvs.py +++ b/bitbake/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): -- cgit v1.2.3-54-g00ecf