From 52cbb074235fc7b1bcd94bc1147c4607612fe701 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Fri, 5 Feb 2010 12:41:08 +0000 Subject: bitbake: fix invalid method and logic The previous bitbake change included an invalid method call and inverted logic. Signed-off-by: Joshua Lock --- bitbake/lib/bb/fetch/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index 4b1203d60..b42bcf439 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py @@ -369,7 +369,7 @@ def try_mirrors(d, uri, mirrors, check = False): mirrors is the list of mirrors we're going to try """ fpath = os.path.join(data.getVar("DL_DIR", d, 1), os.path.basename(uri)) - if not check and os.access.path(fpath, os.R_OK): + if not check and os.access(fpath, os.R_OK): bb.msg.debug(1, bb.msg.domain.Fetcher, "%s already exists, skipping checkout." % fpath) return fpath @@ -387,9 +387,9 @@ def try_mirrors(d, uri, mirrors, check = False): try: if check: - ud.method.go(newuri, ud, ld) - else: ud.method.checkstatus(newuri, ud, ld) + else: + ud.method.go(newuri, ud, ld) return ud.localpath except (bb.fetch.MissingParameterError, bb.fetch.FetchError, -- cgit v1.2.3