X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Frm.py;h=4c4100bfcc4857811c0a172e00d7a5672b5670ac;hb=01496fe710b21e3922ef7b6f3ffa74f2b697b34d;hp=f63b2ca6b80e0f87afcc7d1d4aeb394623ef8d1b;hpb=ecd1f4b98366b37fa0b06eb2256ce393e71e7c87;p=dak.git 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():