X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fqueue.py;h=0d9ca5e1f66336dab2bdcbaca701c318a2e118a9;hb=487dcc16a86c9aab0eb676a27e7b62dcbce43749;hp=b7eba9537aba8fbabb8883cb0e9c4a9726af47b2;hpb=8d96479bcfd210f9cf8f5692b2982d3c3a08ba5c;p=dak.git diff --git a/daklib/queue.py b/daklib/queue.py index b7eba953..0d9ca5e1 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -2188,8 +2188,13 @@ distribution.""" session.commit() # Move the .changes into the 'done' directory + ye, mo, da = time.gmtime()[0:3] + 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) + utils.move(self.pkg.changes_file, - os.path.join(cnf["Dir::Queue::Done"], os.path.basename(self.pkg.changes_file))) + os.path.join(donedir, os.path.basename(self.pkg.changes_file))) if self.pkg.changes["architecture"].has_key("source") and cnf.get("Dir::UrgencyLog"): UrgencyLog().log(self.pkg.dsc["source"], self.pkg.dsc["version"], self.pkg.changes["urgency"])