]> git.decadent.org.uk Git - dak.git/commitdiff
Removal dep check only considers latest sources (Closes: #792578)
authorJoachim Breitner <nomeata@debian.org>
Sat, 2 Jan 2016 13:21:27 +0000 (13:21 +0000)
committerLuca Falavigna <dktrkranz@debian.org>
Sat, 2 Jan 2016 13:21:27 +0000 (13:21 +0000)
daklib/utils.py

index cdec3a773865c7faee74a41b063b892a59f2dc19..9d45cdc847ba814b172daa498b5a5815407037b3 100644 (file)
@@ -1256,7 +1256,7 @@ def check_reverse_depends(removals, suite, arches=None, session=None, cruft=Fals
            FROM source s
            JOIN source_metadata sm ON s.id = sm.src_id
            WHERE s.id in
-               (SELECT source FROM src_associations
+               (SELECT src FROM newest_src_association
                    WHERE suite = :suite_id)
                AND sm.key_id in :metakey_ids
            GROUP BY s.id, s.source'''