]> git.decadent.org.uk Git - dak.git/blobdiff - dak/rm.py
Port bts_categorize to python-debianbts
[dak.git] / 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():