From 412ea4a7f07d4ae918be52a6ee028e451305b76b Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Mon, 2 Aug 2010 13:08:49 +0000 Subject: [PATCH] rm.py: also take udebs into account while checking rdeps Signed-off-by: Luca Falavigna --- dak/rm.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dak/rm.py b/dak/rm.py index f63b2ca6..4c4100bf 100755 --- a/dak/rm.py +++ b/dak/rm.py @@ -119,6 +119,12 @@ def reverse_depends_check(removals, suites, arches=None): (result, output) = commands.getstatusoutput("gunzip -c %s > %s" % (filename, temp_filename)) if (result != 0): utils.fubar("Gunzip invocation failed!\n%s\n" % (output), result) + # Also check for udebs + filename = "%s/dists/%s/%s/debian-installer/binary-%s/Packages.gz" % (cnf["Dir::Root"], suites[0], component, architecture) + if os.path.exists(filename): + (result, output) = commands.getstatusoutput("gunzip -c %s >> %s" % (filename, temp_filename)) + if (result != 0): + utils.fubar("Gunzip invocation failed!\n%s\n" % (output), result) packages = utils.open_file(temp_filename) Packages = apt_pkg.ParseTagFile(packages) while Packages.Step(): -- 2.39.5