From: Mark Hymers Date: Thu, 24 Mar 2011 21:38:47 +0000 (+0000) Subject: 0 pad month and day X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=1c46fa731a54d733a1d0102ddb79c5a970c14aeb;p=dak.git 0 pad month and day Signed-off-by: Mark Hymers --- diff --git a/daklib/queue.py b/daklib/queue.py index 20a8ddf4..0d9ca5e1 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)