From 3c30e7de62636ffe0238617333e236c38fb9dc55 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Fri, 29 Jul 2011 14:32:49 +0100 Subject: [PATCH] Fix path existance check Signed-off-by: Mark Hymers --- daklib/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daklib/queue.py b/daklib/queue.py index 49b465d5..35d47429 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -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): -- 2.39.5