]> git.donarmstrong.com Git - dak.git/commitdiff
Fix path existance check
authorMark Hymers <mhy@debian.org>
Fri, 29 Jul 2011 13:32:49 +0000 (14:32 +0100)
committerMark Hymers <mhy@debian.org>
Fri, 29 Jul 2011 13:32:49 +0000 (14:32 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/queue.py

index 49b465d5a42c1bff1f848324d62ac432eb1dc33a..35d47429858e69613b50e1eebaf03e41f28594d1 100755 (executable)
@@ -1058,7 +1058,7 @@ class Upload(object):
             # TODO: Dynamically generate this list
             for queue_name in [ "byhand", "new", "proposedupdates", "oldproposedupdates", "embargoed", "unembargoed" ]:
                 queue = get_policy_queue(queue_name, session)
-                if queue and os.path.exists(queue.path, f):
+                if queue and os.path.exists(os.path.join(queue.path, f)):
                     self.rejects.append("%s file already exists in the %s queue." % (f, queue_name))
 
             if not re_taint_free.match(f):