diff options
author | Balint Reczey <rbalint@debian.org> | 2016-09-10 11:12:55 +0000 |
---|---|---|
committer | Balint Reczey <rbalint@debian.org> | 2016-09-10 11:12:55 +0000 |
commit | fe0e1a2b19f6cf0b4fe8cc5648a4ee2635755900 (patch) | |
tree | 6159c039c0750a859f94c18a95f6db2fc7dc7be5 /bin/contact-maintainers | |
parent | 579db5020f5c09012756459288481251997479ae (diff) |
Check if we should contact maintainers in contact-maintainers
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@44480 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/contact-maintainers')
-rwxr-xr-x | bin/contact-maintainers | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/contact-maintainers b/bin/contact-maintainers index 560e727139..d543c07d0b 100755 --- a/bin/contact-maintainers +++ b/bin/contact-maintainers @@ -92,6 +92,17 @@ if os.path.exists(instructions) and not args.force: print("If you still want to run this script, run it with --force.") sys.exit(1) +# Check if we should contact maintainers +dontcall = "data/packages/lts-do-not-call" +if args.lts and not args.force: + with open(dontcall) as f: + for line in f: + if line[0] != '#' and line.split()[0] == args.package: + print "Maintainer(s) may not be contacted for LTS issues." + print("Please have a look at {}".format(line.split()[1])) + 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: |