~mabac/launchpad-work-items-tracker/support-deferred-cards

« back to all changes in this revision

Viewing changes to all-projects

  • Committer: Mattias Backman
  • Date: 2011-09-28 09:57:09 UTC
  • Revision ID: mattias.backman@linaro.org-20110928095709-aajm3hgzoacbgq0l
Run collect_roadmap script after collect.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
 
16
16
def collect(source_dir, db_file, config_file, extra_args):
17
 
    args = [os.path.join(source_dir, "collect")]
 
17
    return run_collect_script(source_dir, db_file, config_file, extra_args,
 
18
                              "collect")
 
19
 
 
20
 
 
21
def collect_roadmap(source_dir, db_file, config_file, extra_args):
 
22
    return run_collect_script(source_dir, db_file, config_file, extra_args,
 
23
                              "collect_roadmap")
 
24
 
 
25
 
 
26
def run_collect_script(source_dir, db_file, config_file, extra_args,
 
27
                       collect_script):
 
28
    args = [os.path.join(source_dir, collect_script)]
18
29
    args.extend(["-d", db_file])
19
30
    args.extend(["-c", config_file])
20
31
    args += extra_args
110
121
        if not collect(source_dir, db_file, config_file, extra_collect_args):
111
122
            sys.stderr.write("collect failed for %s" % project_name)
112
123
            continue
 
124
        if not collect_roadmap(source_dir, db_file, config_file, extra_collect_args):
 
125
            sys.stderr.write("collect_roadmap failed for %s" % project_name)
 
126
            continue
113
127
        publish_new_db(project_name, project_output_dir, db_file)
114
128
        generate_reports(project_output_dir, config_file, db_file,
115
129
            source_dir, extra_generate_args, debug=opts.debug)