Changeset 8b1fd2b in rtems-source-builder


Ignore:
Timestamp:
Dec 11, 2015, 5:21:44 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11
Children:
c07ee80
Parents:
b6d188b
Message:

Return after an error as a dry-run carries on.

File:
1 edited

Legend:

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

    rb6d188b r8b1fd2b  
    5151    if len(args) < 2:
    5252        error('%%%s requires at least 2 arguments' % (label))
     53        return
    5354    _map = '%s-%s' % (label, args[0])
    5455    macros.create_map(_map)
     
    6869    if 'setup' in macros.map_keys(_map):
    6970        error('%%%s already setup source: %s' % (label, ' '.join(args)))
     71        return
    7072    macros.set_write_map(_map)
    7173    macros.define('setup', ss)
     
    8082    if len(args) < 3:
    8183        error('%%%s requires at least 3 arguments: %s' % (label, ' '.join(args)))
     84        return
    8285    if args[0] == 'set':
    8386        return set(label, args[1:], macros, error)
     
    9295    if len(args) != 3:
    9396        error('invalid number of hash args')
     97        return
    9498    _map = 'hashes'
    9599    _file = macros.expand(args[1])
    96100    if _file in macros.map_keys(_map):
    97101        error('hash already set: %s' % (args[1]))
     102        return
    98103    macros.create_map(_map)
    99104    macros.set_write_map(_map)
     
    107112    if len(keys) == 0:
    108113        error('no %s set: %s (%s)' % (label, name, _map))
     114        return
    109115    srcs = []
    110116    for s in keys:
Note: See TracChangeset for help on using the changeset viewer.