diff options
author | Raphaël Hertzog <hertzog@debian.org> | 2015-07-20 09:54:58 +0000 |
---|---|---|
committer | Raphaël Hertzog <hertzog@debian.org> | 2015-07-20 09:54:58 +0000 |
commit | 32944ad8683b1280d6f33741740ef321abbb866d (patch) | |
tree | ef558b96afac0117be5d07730f4ff70515555654 /bin/contact-maintainers | |
parent | 0cd24a4699c70b69de9915a01ea8f5ba83357163 (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-x | bin/contact-maintainers | 10 |
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: |