diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-02-05 12:41:08 +0000 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2010-02-05 12:41:08 +0000 |
commit | 52cbb074235fc7b1bcd94bc1147c4607612fe701 (patch) | |
tree | bcd28cc25ac6ef399400e7a8b26d86de8352db75 /bitbake/lib/bb/fetch | |
parent | ec92133d6fc049b4b666d670d3ac263de5a1d103 (diff) | |
download | poky-52cbb074235fc7b1bcd94bc1147c4607612fe701.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/bb/fetch')
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index 4b1203d605..b42bcf439c 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): | |||
369 | mirrors is the list of mirrors we're going to try | 369 | mirrors is the list of mirrors we're going to try |
370 | """ | 370 | """ |
371 | fpath = os.path.join(data.getVar("DL_DIR", d, 1), os.path.basename(uri)) | 371 | fpath = os.path.join(data.getVar("DL_DIR", d, 1), os.path.basename(uri)) |
372 | if not check and os.access.path(fpath, os.R_OK): | 372 | if not check and os.access(fpath, os.R_OK): |
373 | bb.msg.debug(1, bb.msg.domain.Fetcher, "%s already exists, skipping checkout." % fpath) | 373 | bb.msg.debug(1, bb.msg.domain.Fetcher, "%s already exists, skipping checkout." % fpath) |
374 | return fpath | 374 | return fpath |
375 | 375 | ||
@@ -387,9 +387,9 @@ def try_mirrors(d, uri, mirrors, check = False): | |||
387 | 387 | ||
388 | try: | 388 | try: |
389 | if check: | 389 | if check: |
390 | ud.method.go(newuri, ud, ld) | ||
391 | else: | ||
392 | ud.method.checkstatus(newuri, ud, ld) | 390 | ud.method.checkstatus(newuri, ud, ld) |
391 | else: | ||
392 | ud.method.go(newuri, ud, ld) | ||
393 | return ud.localpath | 393 | return ud.localpath |
394 | except (bb.fetch.MissingParameterError, | 394 | except (bb.fetch.MissingParameterError, |
395 | bb.fetch.FetchError, | 395 | bb.fetch.FetchError, |