]> git.decadent.org.uk Git - dak.git/commitdiff
yet another fix
authorTorsten Werner <twerner@debian.org>
Thu, 11 Aug 2011 19:52:14 +0000 (19:52 +0000)
committerTorsten Werner <twerner@debian.org>
Thu, 11 Aug 2011 19:52:14 +0000 (19:52 +0000)
Signed-off-by: Torsten Werner <twerner@debian.org>
dak/rm.py

index dcca4b6beb26d15aa79a2076987583daa418aeb5..e551b62269f7e8478e170c4d7b060fdd6980aafd 100755 (executable)
--- a/dak/rm.py
+++ b/dak/rm.py
@@ -134,8 +134,8 @@ def reverse_depends_check(removals, suite, arches=None, session=None):
             insert into suite_binaries
                 select b.id, b.package, b.source, b.file
                     from binaries b WHERE b.id in
-                        (SELECT bin FROM bin_associations WHERE suite = 5)
-                        AND b.architecture in (16, 2);
+                        (SELECT bin FROM bin_associations WHERE suite = :suite_id)
+                        AND b.architecture in (:arch_id, :arch_all_id);
             SELECT b.id, b.package, s.source, c.name as component,
                 bmd.value as depends, bmp.value as provides
                 FROM suite_binaries b