diff options
author | Moritz Muehlenhoff <jmm@debian.org> | 2005-08-28 19:59:20 +0000 |
---|---|---|
committer | Moritz Muehlenhoff <jmm@debian.org> | 2005-08-28 19:59:20 +0000 |
commit | 66675d352f181140c2f9f8b16f305982fb8aa6e4 (patch) | |
tree | 3dc0f872a2f3aaa2865a61e7b4c93d903dc072e8 /data/DTSA/dtsa | |
parent | 0be31d2bc96436a62e7438070502634324138400 (diff) |
rename process option, which was unclear
properly align author name and it in advisory
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@1705 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'data/DTSA/dtsa')
-rwxr-xr-x | data/DTSA/dtsa | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/data/DTSA/dtsa b/data/DTSA/dtsa index 104c8c7970..042b659787 100755 --- a/data/DTSA/dtsa +++ b/data/DTSA/dtsa @@ -17,12 +17,12 @@ announce_mail_address = "secure-testing-announce@lists.alioth.debian.org" def print_usage(): print "dtsa [-a | -u] dtsa-id major number" - print " -a Announce a DTSA" + print " -p Process a DTSA from a template" print " -u Update an existing DTSA from a template" sys.exit(-1) -def publish_dtsa(id): +def process_dtsa(id): filename=glob.glob("advs/" + id + "-*.adv") src = "" @@ -105,8 +105,8 @@ def export_ascii(src, date, vuln_type, cve, testing_fix, sid_fix, descr, vendor_ # FIXME, correct indents ascii.write("------------------------------------------------------------------------------\n") - ascii.write("Debian Testing Security Advisory "+ id + " http://secure-testing.debian.net\n") - ascii.write("secure-testing-team@lists.alioth.debian.org " + author + "\n") + ascii.write("Debian Testing Security Advisory "+ id + ((12-len(id))*" ") + " http://secure-testing.debian.net\n") + ascii.write("secure-testing-team@lists.alioth.debian.org " + ((34-len(author))*" ") + author + "\n") ascii.write(date + "\n") ascii.write("------------------------------------------------------------------------------\n") ascii.write("\n") @@ -187,7 +187,7 @@ def yn(v): def update_dtsa(): pass -opts, pargs = getopt.getopt(sys.argv[1:], "ua") +opts, pargs = getopt.getopt(sys.argv[1:], "up") # FIXME, better cmdline error handling @@ -200,5 +200,5 @@ if len(opts) != 1: if opts[0][0] == "-u": update_dtsa() -if opts[0][0] == "-a": - publish_dtsa(pargs[0].strip()) +if opts[0][0] == "-p": + process_dtsa(pargs[0].strip()) |