bitbake: fix invalid method and logic

The previous bitbake change included an invalid method call and inverted logic.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
This commit is contained in:
Joshua Lock 2010-02-05 12:41:08 +00:00
parent ec92133d6f
commit 52cbb07423
1 changed files with 3 additions and 3 deletions

View File

@ -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,