aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/target11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/target b/bin/target
index 0f03471..5e3aed9 100755
--- a/bin/target
+++ b/bin/target
@@ -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)