X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_unchecked.py;h=491c5560ec7b7c968b17bbeeb37c4514f778c049;hb=d7e5fc088ef24abe38c8f6eb50a3f62cbe36febd;hp=aa2926a0c85be6a8f181e738ec57964589d9cc71;hpb=b373c111451a76576c9bf30eefff27df959d66e0;p=dak.git diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index aa2926a0..491c5560 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -326,7 +326,7 @@ def check_distributions(): (source, dest) = args[1:3] if changes["distribution"].has_key(source): for arch in changes["architecture"].keys(): - if arch not in database.get_suite_architectures(source): + if arch not in DBConn().get_suite_architectures(source): reject("Mapping %s to %s for unreleased architecture %s." % (source, dest, arch),"") del changes["distribution"][source] changes["distribution"][dest] = 1 @@ -474,7 +474,7 @@ def check_files(): default_suite = Cnf.get("Dinstall::DefaultSuite", "Unstable") architecture = control.Find("Architecture") upload_suite = changes["distribution"].keys()[0] - if architecture not in database.get_suite_architectures(default_suite) and architecture not in database.get_suite_architectures(upload_suite): + if architecture not in DBConn().get_suite_architectures(default_suite) and architecture not in DBConn().get_suite_architectures(upload_suite): reject("Unknown architecture '%s'." % (architecture)) # Ensure the architecture of the .deb is one of the ones