[Secure-testing-commits] r16637 - bin

Florian Weimer fw at alioth.debian.org
Fri May 6 19:09:38 UTC 2011


Author: fw
Date: 2011-05-06 19:09:28 +0000 (Fri, 06 May 2011)
New Revision: 16637

Modified:
   bin/gen-DSA.py
Log:
bin/gen-DSA.py: fix off-by-one bug in month conversion


Modified: bin/gen-DSA.py
===================================================================
--- bin/gen-DSA.py	2011-05-06 19:07:21 UTC (rev 16636)
+++ bin/gen-DSA.py	2011-05-06 19:09:28 UTC (rev 16637)
@@ -143,7 +143,7 @@
     return re_var.sub(repl, template)
 
 tm = time.gmtime(time.time())
-def getdate(months=" January February March April May June July August September October November December".split()):
+def getdate(months=" January February March April May June July August September October November December".split(" ")):
     return "{0} {1:02}, {2}".format(months[tm.tm_mon], tm.tm_mday, tm.tm_year)
 
 dsa_list_path = debian_support.findresource(*"data DSA list".split())
@@ -155,7 +155,7 @@
             sys.exit(1)
 
 def fordsalist(versions,
-               months=" Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split()):
+               months=" Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")):
     lines = ["[{0:02} {1} {2}] DSA-{3} {4} - {5}\n".format(
             tm.tm_mday, months[tm.tm_mon], tm.tm_year,
             opt_dsaid, opt_package, opt_vulnerability)]




More information about the Secure-testing-commits mailing list