summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2011-05-06 19:07:21 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2011-05-06 19:07:21 +0000
commitbbfbbab80681f2a5556a82fcb9021f87f184609e (patch)
tree2024ea04c3fa781dbd258d34d4f4189fa5e04652 /bin
parent00aa6852c776470dee39488b1b0104f13c657ce7 (diff)
bin/gen-DSA.py: pad days in date strings with zero if necessary
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@16636 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gen-DSA.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/gen-DSA.py b/bin/gen-DSA.py
index 9646ac6262..310e67a0e4 100755
--- a/bin/gen-DSA.py
+++ b/bin/gen-DSA.py
@@ -144,7 +144,7 @@ def filledtemplate(values, re_var=re.compile(r"\$\$?([A-Z_]+)")):
tm = time.gmtime(time.time())
def getdate(months=" January February March April May June July August September October November December".split()):
- return "{0} {1:0}, {2}".format(months[tm.tm_mon], tm.tm_mday, tm.tm_year)
+ 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())
def checklist():
@@ -156,7 +156,7 @@ def checklist():
def fordsalist(versions,
months=" Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split()):
- lines = ["[{0:0} {1} {2}] DSA-{3} {4} - {5}\n".format(
+ 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)]
if opt_cve:

© 2014-2024 Faster IT GmbH | imprint | privacy policy