From ed2c32880ae471063dcdf1b353fcc7a8a9931646 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 4 Nov 2009 00:47:28 +0000 Subject: [PATCH] git.py: Search mirrors for tarballs before fetching, not just local directories Signed-off-by: Richard Purdie --- lib/bb/fetch/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bb/fetch/git.py b/lib/bb/fetch/git.py index 97cd0a24..5cdf656a 100644 --- a/lib/bb/fetch/git.py +++ b/lib/bb/fetch/git.py @@ -62,7 +62,7 @@ class Git(Fetch): def go(self, loc, ud, d): """Fetch url""" - if os.access(os.path.join(data.getVar("DL_DIR", d, True), ud.localfile), os.R_OK): + if Fetch.try_mirror(d, ud.localfile): bb.msg.debug(1, bb.msg.domain.Fetcher, "%s already exists (or was stashed). Skipping git checkout." % ud.localpath) return -- 2.20.1