[dak/master] 0 pad month and day
Signed-off-by: Mark Hymers <mhy@debian.org>
---
daklib/queue.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/daklib/queue.py b/daklib/queue.py
index 20a8ddf..0d9ca5e 100755
--- a/daklib/queue.py
+++ b/daklib/queue.py
@@ -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)
--
1.7.2.5
Reply to: