X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Frm.py;h=903e138e8929e1f6aec25e2518f9f5adde58eb61;hb=c86d96790c95deed79c5ac3727361ac798c39f0f;hp=c2c5fa4827be337d3170f754029d044e3a8162e9;hpb=564395db9f6a393a894fa1b2f7ff5aefcfadd2b7;p=dak.git diff --git a/dak/rm.py b/dak/rm.py index c2c5fa48..903e138e 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 @@ -44,11 +44,7 @@ import apt_pkg, apt_inst from daklib import database from daklib import utils from daklib.dak_exceptions import * - -################################################################################ - -re_strip_source_version = re.compile (r'\s+.*$') -re_build_dep_arch = re.compile(r"\[[^]]+\]") +from daklib.regexes import re_strip_source_version, re_build_dep_arch ################################################################################ @@ -104,7 +100,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 = {}