~vorlon/ubuntu-archive-tools/update-output-helper

« back to all changes in this revision

Viewing changes to component-mismatches

MergeĀ lp:~brian-murray/ubuntu-archive-tools/mir-bug-creation-improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
    return output
332
332
 
333
333
 
334
 
def do_dot(why, fd, mir_bugs):
 
334
def do_dot(why, fd, mir_bugs, suite):
335
335
    # write dot graph for given why dictionary
336
336
 
337
337
    written_nodes = set()
397
397
                else:
398
398
                    fc = "white"
399
399
                    url = ("https://launchpad.net/ubuntu/+source/%s/+filebug?"
400
 
                           "field.title=%s" %
401
 
                           (name, quote_plus("[MIR] %s" % name)))
402
 
 
 
400
                           "field.title=%s&field.status=Incomplete"
 
401
                           "&field.tags=%s" %
 
402
                           (quote_plus(name), quote_plus("[MIR] %s" % name),
 
403
                            quote_plus(suite)))
403
404
                fd.write(' fillcolor="%s"' % fc)
404
405
                if url:
405
406
                    fd.write(' URL="%s"' % url)
674
675
 
675
676
    if options.dot:
676
677
        with open(options.dot, 'w') as f:
677
 
            do_dot(both, f, mir_bugs)
 
678
            do_dot(both, f, mir_bugs, options.suite)
678
679
 
679
680
    # Removals
680
681
 
836
837
        '--germinate-path',
837
838
        default=os.path.expanduser('~/mirror/ubuntu-germinate/'),
838
839
        help='read Germinate output from this directory')
 
840
    parser.add_option(
 
841
        '--archive-dir',
 
842
        default=os.path.expanduser('~/mirror/ubuntu/'),
 
843
        help='use Ubuntu archive located in this directory')
839
844
    options, args = parser.parse_args()
840
845
 
841
846
    options.launchpad = Launchpad.login_anonymously(
843
848
    options.distro = options.launchpad.distributions['ubuntu']
844
849
    options.archive = options.distro.getArchive(name='primary')
845
850
 
846
 
    options.archive_dir = os.path.expanduser('~/mirror/ubuntu/')
847
 
 
848
851
    options.component = "main,restricted"
849
852
    options.components = options.component.split(',')
850
853
    options.all_components = ["main", "restricted", "universe", "multiverse"]