X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Frm.py;h=d1fa3d9f02a0f90f269b273af48ac002e804c848;hb=73695ee3c0c0d6b7b72341f62535af0d65bfbe31;hp=0d40e22b9521a06df8bc47d06e142b6b679cd85e;hpb=67d9d6088c28ada9bca045d7b6c09c3982ad59e2;p=dak.git diff --git a/dak/rm.py b/dak/rm.py index 0d40e22b..d1fa3d9f 100755 --- a/dak/rm.py +++ b/dak/rm.py @@ -264,11 +264,6 @@ def main (): to_remove.extend(q) if not Options["Source-Only"]: # Source + Binary - q = session.execute("SELECT DISTINCT b.package FROM binaries b, source s, src_associations sa, suite su, archive, files f, files_archive_map af, component c WHERE b.source = s.id AND sa.source = s.id AND sa.suite = su.id AND su.archive_id = archive.id AND s.file = f.id AND f.id = af.file_id AND af.archive_id = su.archive_id AND af.component_id = c.id %s %s %s" % (con_packages, con_suites, con_components)) - # Then for each binary package: find any version in - # unstable, check the Source: field in the deb matches our - # source package and if so add it to the list of packages - # to be removed. q = session.execute(""" SELECT b.package, b.version, a.arch_string, b.id, b.maintainer FROM binaries b