/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tools/check-newsbugs.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
if len(args) == 1:
23
23
    print ("Usage: check-newsbugs [--launchpad][--webbrowser] "
24
 
           "doc/en/release-notes/bzr-x.y.txt")
 
24
           "doc/en/release-notes/brz-x.y.txt")
25
25
    print "Options:"
26
26
    print "--launchpad     Print out Launchpad mail commands for closing bugs "
27
27
    print "                that are already fixed."
90
90
            continue
91
91
        raise
92
92
 
93
 
    found_bzr = False
 
93
    found_brz = False
94
94
    fix_released = False
95
95
    for task in bug.bug_tasks:
96
96
        parts = task.bug_target_name.split('/')
100
100
        else:
101
101
            project = parts[0]
102
102
            distribution = parts[1]
103
 
        if project == "bzr":
104
 
            found_bzr = True
 
103
        if project == "brz":
 
104
            found_brz = True
105
105
            if not fix_released and task.status == "Fix Released":
106
106
                # We could check that the NEWS section and task_status are in
107
107
                # sync, but that would be overkill. (case at hand: bug #416732)
108
108
                fix_released = True
109
109
 
110
 
    if not found_bzr:
 
110
    if not found_brz:
111
111
        print_bug_url(bugno)
112
 
        print "Bug %d was mentioned in NEWS but is not marked as affecting bzr" % bugno
 
112
        print "Bug %d was mentioned in NEWS but is not marked as affecting brz" % bugno
113
113
    elif not fix_released:
114
114
        print_bug_url(bugno)
115
115
        report_notmarked(bug, task, section)