aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAlex Legler <a3li@gentoo.org>2009-08-06 07:33:52 +0000
committerAlex Legler <a3li@gentoo.org>2009-08-06 07:33:52 +0000
commit5f0d4cda0f6d7ce843cd5ab50680c11a44ab54b9 (patch)
tree9cd2def93d67019cd5a375f1b03f8828f54bbfac /bin
parentMITRE sync (diff)
downloadsecurity-5f0d4cda0f6d7ce843cd5ab50680c11a44ab54b9.tar.gz
security-5f0d4cda0f6d7ce843cd5ab50680c11a44ab54b9.tar.bz2
security-5f0d4cda0f6d7ce843cd5ab50680c11a44ab54b9.zip
MITRE sync
svn path=/; revision=1525
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)