summaryrefslogtreecommitdiffstats
path: root/bin/contact-maintainers
diff options
context:
space:
mode:
authorRaphaël Hertzog <hertzog@debian.org>2015-07-20 09:54:58 +0000
committerRaphaël Hertzog <hertzog@debian.org>2015-07-20 09:54:58 +0000
commitf275fd6742143aa87ff50c95ac2425194d675eb8 (patch)
tree393a4f73c7b0dfb6e3e4f1da1edfb55c76da651a /bin/contact-maintainers
parent83113095e9a9110ef57697c2938646627373f5ee (diff)
Improve contact-maintainers to warn about special instructions
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@35588 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/contact-maintainers')
-rwxr-xr-xbin/contact-maintainers10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/contact-maintainers b/bin/contact-maintainers
index ca010901c9..b0061d98be 100755
--- a/bin/contact-maintainers
+++ b/bin/contact-maintainers
@@ -4,6 +4,7 @@ import argparse
import os
import pwd
import subprocess
+import sys
import tempfile
from jinja2 import Template
@@ -37,6 +38,8 @@ def get_uploaders(pkg):
# 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 @@ team = 'lts' if args.lts else 'sec'
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:

© 2014-2024 Faster IT GmbH | imprint | privacy policy