[Secure-testing-commits] r1705 - data/DTSA

Moritz Muehlenhoff jmm-guest at costa.debian.org
Sun Aug 28 19:59:20 UTC 2005


Author: jmm-guest
Date: 2005-08-28 19:59:20 +0000 (Sun, 28 Aug 2005)
New Revision: 1705

Modified:
   data/DTSA/dtsa
Log:
rename process option, which was unclear
properly align author name and it in advisory


Modified: data/DTSA/dtsa
===================================================================
--- data/DTSA/dtsa	2005-08-28 19:52:53 UTC (rev 1704)
+++ data/DTSA/dtsa	2005-08-28 19:59:20 UTC (rev 1705)
@@ -17,12 +17,12 @@
 
 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 @@
 
     # FIXME, correct indents
     ascii.write("------------------------------------------------------------------------------\n")
-    ascii.write("Debian Testing Security Advisory "+ id + " http://secure-testing.debian.net\n")
-    ascii.write("secure-testing-team at 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 at lists.alioth.debian.org " + ((34-len(author))*" ") + author + "\n") 
     ascii.write(date + "\n")
     ascii.write("------------------------------------------------------------------------------\n")
     ascii.write("\n")
@@ -187,7 +187,7 @@
 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 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())




More information about the Secure-testing-commits mailing list