X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fqueue.py;h=cc1e855ad307a74a1e13b62733fd25f059bfe67b;hb=df610ec6b921b869c4e4a25629a0aff3f13a03ae;hp=eb55b251a73ddaef6f09bbbf6ba532593041a960;hpb=1c99dd656bfc809b40a26afd005d101dfd7442ad;p=dak.git diff --git a/daklib/queue.py b/daklib/queue.py index eb55b251..cc1e855a 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -439,9 +439,8 @@ class Upload(object): # Check there isn't already a changes file of the same name in one # of the queue directories. base_filename = os.path.basename(filename) - for d in [ "Accepted", "Byhand", "Done", "New", "ProposedUpdates", "OldProposedUpdates" ]: - if os.path.exists(os.path.join(Cnf["Dir::Queue::%s" % (d) ], base_filename)): - self.rejects.append("%s: a file with this name already exists in the %s directory." % (base_filename, d)) + if get_knownchange(base_filename): + self.rejects.append("%s: a file with this name already exists." % (base_filename)) # Check the .changes is non-empty if not self.pkg.files: