Changeset 5692 for devel


Ignore:
Timestamp:
Apr 23, 2012 9:42:18 PM (8 years ago)
Author:
wehart
Message:

Adding logic to support branches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/reconfig

    r4135 r5692  
    2727
    2828    for section in config.sections():
     29        root = None
     30        path = '/'+type
    2931        for option in config.options(section):
    3032            if section == 'externals':
    3133                cfg = ConfigParser.ConfigParser()
    3234                parse(config.get(section, option), type, externals, cfg)
     35                path = None
    3336            elif option in 'release':
    34                 externals.append(section+' '+config.get(section,option))
     37                root = config.get(section, option)
     38                path = ''
    3539            elif option == 'root':
    36                 externals.append(section+' '+config.get(section,option)+'/'+type)
     40                root = config.get(section, option)
     41            elif option == 'branch':
     42                path = '/branches/'+config.get(section,option)
     43        if not root is None:
     44            externals.append(section+' '+root+path)
    3745    return externals
    3846
Note: See TracChangeset for help on using the changeset viewer.