[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] rm.py: also take udebs into account while checking rdeps



Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
---
 dak/rm.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dak/rm.py b/dak/rm.py
index f63b2ca..4c4100b 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():
-- 
1.5.6.5


Reply to: