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 | b823ca59499f7e023188b1eaa44387199278677f (patch) | |
tree | 32fa1bc2c534f887706f6791c8d6194882649c36 /bin/contact-maintainers | |
parent | 504f45c4f608b9b385c107a061da51f51b84ee3a (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: |