mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Do not run any download type functions if performing a dry-run.
This commit is contained in:
parent
a702d9fe44
commit
0ed876c0a9
@ -313,10 +313,10 @@ def get_file(url, local, opts, config):
|
||||
urls.append(urlparse.urljoin(base, url_file))
|
||||
urls.append(url)
|
||||
log.trace('_url: %s -> %s' % (','.join(urls), local))
|
||||
for url in urls:
|
||||
for dl in downloaders:
|
||||
if url.startswith(dl):
|
||||
if downloaders[dl](url, local, config, opts):
|
||||
return
|
||||
if not opts.dry_run():
|
||||
for url in urls:
|
||||
for dl in downloaders:
|
||||
if url.startswith(dl):
|
||||
if downloaders[dl](url, local, config, opts):
|
||||
return
|
||||
raise error.general('downloading %s: all paths have failed, giving up' % (url))
|
||||
|
Loading…
x
Reference in New Issue
Block a user