]> git.decadent.org.uk Git - dak.git/commitdiff
Its dest_file and Dir. damnit
authorJoerg Jaspert <joerg@debian.org>
Mon, 21 Dec 2009 21:54:23 +0000 (22:54 +0100)
committerJoerg Jaspert <joerg@debian.org>
Mon, 21 Dec 2009 21:54:23 +0000 (22:54 +0100)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
daklib/queue.py

index d3119c06262854874e7a745ff65b868428ca205d..72804059ce940f307477060787758ab7e2d82d38 100755 (executable)
@@ -2081,11 +2081,11 @@ distribution."""
                 # File exists?  Let's find a new name by adding a number
                 if e.errno == errno.EEXIST:
                     try:
-                        dest_file = utils.find_next_free(morgue_file, 255)
+                        dest_file = utils.find_next_free(dest_file, 255)
                     except NoFreeFilenameError:
                         # Something's either gone badly Pete Tong, or
                         # someone is trying to exploit us.
-                        utils.warn("**WARNING** failed to find a free filename for %s in %s." % (file_entry, cnf["Fir::Queue::Reject"]))
+                        utils.warn("**WARNING** failed to find a free filename for %s in %s." % (file_entry, cnf["Dir::Queue::Reject"]))
                         return
 
                     # Make sure we really got it