summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2009-11-04 00:47:28 +0000
committerRichard Purdie <rpurdie@rpsys.net>2009-11-06 15:10:00 +0000
commited2c32880ae471063dcdf1b353fcc7a8a9931646 (patch)
treeb6e0cd879da983ce8d4b26956b5db5543725e515
parent6f036bdb89e0ed581df415c67eb04749618fd01b (diff)
downloadbitbake-ed2c32880ae471063dcdf1b353fcc7a8a9931646.tar.gz
git.py: Search mirrors for tarballs before fetching, not just local directories
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
-rw-r--r--lib/bb/fetch/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch/git.py b/lib/bb/fetch/git.py
index 97cd0a247..5cdf656a3 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