]> git.decadent.org.uk Git - dak.git/commitdiff
0 pad month and day
authorMark Hymers <mhy@debian.org>
Thu, 24 Mar 2011 21:38:47 +0000 (21:38 +0000)
committerMark Hymers <mhy@debian.org>
Thu, 24 Mar 2011 21:38:47 +0000 (21:38 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/queue.py

index 20a8ddf45f4b3ed2193f094767473e09a09fc456..0d9ca5e1f66336dab2bdcbaca701c318a2e118a9 100755 (executable)
@@ -2189,7 +2189,7 @@ distribution."""
 
         # Move the .changes into the 'done' directory
         ye, mo, da = time.gmtime()[0:3]
-        donedir = os.path.join(cnf["Dir::Queue::Done"], str(ye), str(mo), str(da))
+        donedir = os.path.join(cnf["Dir::Queue::Done"], str(ye), "%0.2d" % mo, "%0.2d" % da)
         if not os.path.isdir(donedir):
             os.makedirs(donedir)