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 | 3c9bf004fe34eceebe42b425e4892271915a5d1a (patch) | |
tree | ab2a10637b3c4f624898d3fd3c560aeacada9cc0 /bin/contact-maintainers | |
parent | 3543abe0d653250ff918e69a5f882659a01b8d57 (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: |