X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fimport_known_changes.py;h=5d666b6b6f4ef58b730cd3a33656cb829d9dd247;hb=ab58bad73376ccc69685fcb731916ac03edadc68;hp=da696aedc079b2cf846a3490b8ae0676e733538f;hpb=5eaac0daf58f178da97f38f4f83a487b058db7c5;p=dak.git diff --git a/dak/import_known_changes.py b/dak/import_known_changes.py index da696aed..5d666b6b 100755 --- a/dak/import_known_changes.py +++ b/dak/import_known_changes.py @@ -70,7 +70,6 @@ def check_signature (sig_filename, data_filename=""): keyrings = [ "/home/joerg/keyring/keyrings/debian-keyring.gpg", - "/home/joerg/keyring/keyrings/debian-keyring.pgp", "/home/joerg/keyring/keyrings/debian-maintainers.gpg", "/home/joerg/keyring/keyrings/debian-role-keys.gpg", "/home/joerg/keyring/keyrings/emeritus-keyring.pgp", @@ -201,8 +200,18 @@ class ChangesGenerator(threading.Thread): def run(self): cnf = Config() count = 1 - for directory in [ "Byhand", "Done", "New", "ProposedUpdates", "OldProposedUpdates" ]: - checkdir = cnf["Dir::Queue::%s" % (directory) ] + + dirs = [] + dirs.append(cnf['Dir::Done']) + + for queue_name in [ "byhand", "new", "proposedupdates", "oldproposedupdates" ]: + queue = get_policy_queue(queue_name) + if queue: + dirs.append(os.path.abspath(queue.path)) + else: + utils.warn("Could not find queue %s in database" % queue_name) + + for checkdir in dirs if os.path.exists(checkdir): print "Looking into %s" % (checkdir)