Ignore:
Timestamp:
Feb 28, 2016, 7:31:39 PM (3 years ago)
Author:
kbut
Message:

recursive enhanced

File:
1 edited

Legend:

Unmodified
Added
Removed
  • germinate/trunk/fuentes/germinate/scripts/germinate_update_metapackage.py

    r445 r733  
    187187                mapped_seeds.append(seed_name)
    188188        packages = []
    189         if options.recursive:
    190             mapped_seeds.extend(structure.inner_seeds(seed_name))
    191             mapped_seeds = list(set(mapped_seeds))
    192 
     189        task_seeds_re = re.compile('^Task-Recursive:\s*(.*)', re.I)
     190        with structure[seed_name] as seed:
     191            for line in seed:
     192                task_seeds_match = task_seeds_re.match(line)
     193                if task_seeds_match is not None:
     194                    mapped_seeds.extend(structure.inner_seeds(seed_name))
     195                    mapped_seeds = list(set(mapped_seeds))
     196                    break
    193197        for mapped_seed in mapped_seeds:
    194198            packages.extend(germinator_method(structure, mapped_seed))
Note: See TracChangeset for help on using the changeset viewer.