X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fqueue.py;h=49b465d5a42c1bff1f848324d62ac432eb1dc33a;hb=d466d5474f1b7a4abee0954bc27b67296fd7c76e;hp=eea43f78b82bb1a01217d36cf8eb2a0759202d60;hpb=9b5be4d06d07883b16ea8a5a24cf181e73eb2ad9;p=dak.git diff --git a/daklib/queue.py b/daklib/queue.py index eea43f78..49b465d5 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -2809,10 +2809,10 @@ distribution.""" source_epochless_version = re_no_epoch.sub('', source_version) dsc_filename = "%s_%s.dsc" % (source_package, source_epochless_version) found = False - for q in ["Embargoed", "Unembargoed", "Newstage"]: - if cnf.has_key("Dir::Queue::%s" % (q)): - if os.path.exists(cnf["Dir::Queue::%s" % (q)] + '/' + dsc_filename): - found = True + for queue_name in ["embargoed", "unembargoed", "newstage"]: + queue = get_policy_queue(queue_name, session) + if queue and os.path.exists(os.path.join(queue.path, dsc_filename)): + found = True if not found: self.rejects.append("no source found for %s %s (%s)." % (source_package, source_version, f))