]> err.no Git - dak/commitdiff
rm.py: also take udebs into account while checking rdeps
authorLuca Falavigna <dktrkranz@debian.org>
Mon, 2 Aug 2010 13:08:49 +0000 (13:08 +0000)
committerLuca Falavigna <dktrkranz@debian.org>
Mon, 2 Aug 2010 13:08:49 +0000 (13:08 +0000)
Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
dak/rm.py

index f63b2ca6b80e0f87afcc7d1d4aeb394623ef8d1b..4c4100bfcc4857811c0a172e00d7a5672b5670ac 100755 (executable)
--- 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():