X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Frm.py;h=6844738fda4c2a5509ecb3a2fe7acf9832e2638c;hb=2ae7b715431fed62b6a619e6d1b027d919da1070;hp=9c76155435a679983361fd6bc3f8be3548e1591a;hpb=2c639c40c65966711c82d46a6f4ee8739e819aad;p=dak.git diff --git a/dak/rm.py b/dak/rm.py index 9c761554..6844738f 100755 --- a/dak/rm.py +++ b/dak/rm.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# General purpose package removal tool for ftpmaster +""" General purpose package removal tool for ftpmaster """ # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006 James Troup # This program is free software; you can redistribute it and/or modify @@ -39,8 +39,13 @@ ################################################################################ -import commands, os, pg, re, sys -import apt_pkg, apt_inst +import commands +import os +import pg +import re +import sys +import apt_pkg +import apt_inst from daklib import database from daklib import utils from daklib.dak_exceptions import * @@ -100,7 +105,7 @@ def reverse_depends_check(removals, suites, arches=None): if arches: all_arches = set(arches) else: - all_arches = set(Cnf.ValueList("Suite::%s::Architectures" % suites[0])) + all_arches = set(database.get_suite_architectures(suites[0])) all_arches -= set(["source", "all"]) for architecture in all_arches: deps = {}