X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fcheck_archive.py;h=89c3dcbd82d690141e01bc2c05d981d8f5f99b72;hb=27e00376e81d1c37ff327ee0d39670b266418869;hp=0d94bbcb1394f14c8c26107a258ab1979c256e97;hpb=5f3c900ab8365aba1a7c1661b0f46addd848d7ad;p=dak.git diff --git a/dak/check_archive.py b/dak/check_archive.py index 0d94bbcb..89c3dcbd 100755 --- a/dak/check_archive.py +++ b/dak/check_archive.py @@ -164,7 +164,7 @@ def check_dscs(): except CantOpenError: utils.warn("missing dsc file (%s)" % f) count += 1 - except Exception, e: + except Exception as e: utils.warn("miscellaneous error parsing dsc file (%s): %s" % (f, str(e))) count += 1 @@ -424,7 +424,7 @@ def check_indices_files_exist(): Ensure files mentioned in Packages & Sources exist """ for suite in [ "stable", "testing", "unstable" ]: - for component in Cnf.ValueList("Suite::%s::Components" % (suite)): + for component in get_component_names(): architectures = get_suite_architectures(suite) for arch in [ i.arch_string.lower() for i in architectures ]: if arch == "source":