diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/target | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -114,6 +114,12 @@ def cc_arches_to(bugno, username, message, cc_add, auth): if not bug_xml: print "Could not find bug %s" % (bugno) return + + if not bug_xml.find('//group') is None: + print ' ! You cannot modify restricted bugs with this tool.' + print ' ! Exiting.' + sys.exit(1) + whiteboard = bug_xml.find('//status_whiteboard') if not whiteboard is None: whiteboard = whiteboard.text @@ -215,6 +221,11 @@ def main(): if opt == '-u': user = arg + if prestable and not bugno is None: + print ' ! Cannot use -p together with -b. Edit the bug manually.' + print ' ! Exiting.' + sys.exit(1) + print_targets(version, liaisons, prestable, bugno, user) |