提交 1c46fa73 编写于 作者: M Mark Hymers

0 pad month and day

Signed-off-by: NMark Hymers <mhy@debian.org>
上级 0ce7303e
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册