Changeset 0ed876c in rtems-source-builder


Ignore:
Timestamp:
Apr 28, 2013, 10:58:01 PM (6 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
8837860
Parents:
a702d9f
Message:

Do not run any download type functions if performing a dry-run.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/download.py

    ra702d9f r0ed876c  
    314314    urls.append(url)
    315315    log.trace('_url: %s -> %s' % (','.join(urls), local))
    316     for url in urls:
    317         for dl in downloaders:
    318             if url.startswith(dl):
    319                 if downloaders[dl](url, local, config, opts):
    320                     return
    321316    if not opts.dry_run():
     317        for url in urls:
     318            for dl in downloaders:
     319                if url.startswith(dl):
     320                    if downloaders[dl](url, local, config, opts):
     321                        return
    322322        raise error.general('downloading %s: all paths have failed, giving up' % (url))
Note: See TracChangeset for help on using the changeset viewer.