[Qa-jenkins-scm] [jenkins.debian.net] 01/01: udd-query: orphaned_without_o_bug: consider only the higher version instead of the latest upload date

Mattia Rizzolo mattia at debian.org
Mon Nov 6 10:39:26 UTC 2017


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch master
in repository jenkins.debian.net.

commit 2284a1b6f0793ce4fe4aeb95abba8eb2290e3818
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Mon Nov 6 11:37:59 2017 +0100

    udd-query: orphaned_without_o_bug: consider only the higher version instead of the latest upload date
    
    this fixes a fpos of a package adopted in experimental, but with a later
    qa upload in unstable.
    
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
 bin/udd-query.sh | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/bin/udd-query.sh b/bin/udd-query.sh
index 7f5cc12..c8ad8cd 100755
--- a/bin/udd-query.sh
+++ b/bin/udd-query.sh
@@ -69,16 +69,16 @@ orphaned_without_o_bug() {
 	WNPPRM=$(mktemp)
 	SORTED_UDD=$(mktemp)
 
-	SQL_QUERY="SELECT DISTINCT u.source
-		FROM upload_history AS u
+	SQL_QUERY="
+		SELECT DISTINCT s.source
+		FROM sources AS s
 		JOIN (
-				SELECT s.source, max(u.date) AS date
-				FROM upload_history AS u
-				JOIN sources AS s ON s.source=u.source
-				WHERE s.release = 'sid' OR s.release = 'experimental'
-				GROUP BY s.source
-			) AS foo ON foo.source=u.source AND foo.date=u.date
-		WHERE maintainer like '%packages at qa.debian.org%';"
+				SELECT source, max(version) AS version
+				FROM sources
+				WHERE release IN ('sid','experimental')
+				GROUP BY source
+			) AS foo ON foo.source=s.source AND foo.version=s.version
+		WHERE s.maintainer_email = 'packages at qa.debian.org';"
 
 	udd_query
 	cat $UDD | tr -d ' ' | sort | uniq > "$SORTED_UDD"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list