Control: tag -1 + patch

Hi,

Am Donnerstag, den 16.07.2015, 14:35 +0200 schrieb Joachim Breitner:
> I propose that in the utils.check_reverse_depends() function, such
> sources (i.e. sources where a newer version is present in the 
> archive) are ignored.
> 

with the help of Luca, this was straight-forward to implement. Please
consider applying the attached patch, or run
$ git pull coccia:/home/nomeata/dak

Greetings,
Joachim
-- 
Joachim "nomeata" Breitner
Debian Developer
  [email protected] | ICQ# 74513189 | GPG-Keyid: F0FBF51F
  JID: [email protected] | http://people.debian.org/~nomeata
From fdae718509e6b46e4f0f16c34bf2d9822c9a9e53 Mon Sep 17 00:00:00 2001
From: Joachim Breitner <[email protected]>
Date: Thu, 16 Jul 2015 15:26:36 +0000
Subject: [PATCH] dak rm: Removal build dependency check only considers latest
 sources

This fixes #792578.
---
 daklib/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/daklib/utils.py b/daklib/utils.py
index efae775..6e9953f 100644
--- a/daklib/utils.py
+++ b/daklib/utils.py
@@ -1247,7 +1247,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'''
-- 
2.1.4

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to