From: Chris Lamb Date: Mon, 26 Oct 2009 13:29:07 +0000 (+0000) Subject: daklib.database has gone away; use dbconn versions. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=438559c98994c62578e1846651dff4905b939ace;p=dak.git daklib.database has gone away; use dbconn versions. Signed-off-by: Chris Lamb --- diff --git a/dak/rm.py b/dak/rm.py index 30e946a1..47ca8b5b 100755 --- a/dak/rm.py +++ b/dak/rm.py @@ -106,7 +106,7 @@ def reverse_depends_check(removals, suites, arches=None): if arches: all_arches = set(arches) else: - all_arches = set(database.get_suite_architectures(suites[0])) + all_arches = set(get_suite_architectures(suites[0])) all_arches -= set(["source", "all"]) for architecture in all_arches: deps = {} @@ -457,7 +457,7 @@ def main (): maintainer_list = [] for maintainer_id in maintainers.keys(): - maintainer_list.append(database.get_maintainer(maintainer_id)) + maintainer_list.append(get_maintainer(maintainer_id)) summary = "" removals = d.keys() removals.sort() @@ -506,8 +506,8 @@ def main (): logfile.write("----------------------------------------------\n") logfile.flush() - dsc_type_id = database.get_override_type_id('dsc') - deb_type_id = database.get_override_type_id('deb') + dsc_type_id = get_override_type('dsc') + deb_type_id = get_override_type('deb') # Do the actual deletion print "Deleting...",