]> git.decadent.org.uk Git - dak.git/blobdiff - dak/check_archive.py
Convert exception handling to Python3 syntax.
[dak.git] / dak / check_archive.py
index 0d94bbcb1394f14c8c26107a258ab1979c256e97..89c3dcbd82d690141e01bc2c05d981d8f5f99b72 100755 (executable)
@@ -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":