[Secure-testing-commits] r35588 - bin
Raphaël Hertzog
hertzog at moszumanska.debian.org
Mon Jul 20 09:54:58 UTC 2015
Author: hertzog
Date: 2015-07-20 09:54:58 +0000 (Mon, 20 Jul 2015)
New Revision: 35588
Modified:
bin/contact-maintainers
Log:
Improve contact-maintainers to warn about special instructions
Modified: bin/contact-maintainers
===================================================================
--- bin/contact-maintainers 2015-07-20 09:54:56 UTC (rev 35587)
+++ bin/contact-maintainers 2015-07-20 09:54:58 UTC (rev 35588)
@@ -4,6 +4,7 @@
import os
import pwd
import subprocess
+import sys
import tempfile
from jinja2 import Template
@@ -37,6 +38,8 @@
# Parse command line
parser = argparse.ArgumentParser(
description='Get in touch with package maintainers')
+parser.add_argument('--force', action='store_true',
+ help='Ignore safety checks')
parser.add_argument('--lts', action='store_true',
help='Act as a member of the LTS team')
parser.add_argument('--no-dsa', dest='no_dsa', action='store_true',
@@ -53,6 +56,13 @@
model = 'no-dsa' if args.no_dsa else 'update-planned'
template_file = 'templates/{}-{}.txt'.format(team, model)
+# Basic check
+instructions = "packages/{}.txt".format(args.package)
+if os.path.exists(instructions) and not args.force:
+ print("Have a look at {}".format(instructions))
+ print("If you still want to run this script, run it with --force.")
+ sys.exit(1)
+
# Generate the context
# XXX: Once that 761859 is fixed, improve the logic here to:
More information about the Secure-testing-commits
mailing list