[Git][qa/jenkins.debian.net][master] reproducible debian: sqla 2.0 execute() method more strict, execution options are more prominent

Mattia Rizzolo (@mattia) gitlab at salsa.debian.org
Mon Aug 11 15:18:37 BST 2025



Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net


Commits:
bee35702 by Mattia Rizzolo at 2025-08-11T16:18:23+02:00
reproducible debian: sqla 2.0 execute() method more strict, execution options are more prominent

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


1 changed file:

- bin/reproducible_json.py


Changes:

=====================================
bin/reproducible_json.py
=====================================
@@ -2,8 +2,9 @@
 # -*- coding: utf-8 -*-
 #
 # Copyright © 2015-2018 Mattia Rizzolo <mattia at mapreri.org>
-# Copyright © 2015-2023 Holger Levsen <holger at layer-acht.org>
-# Based on reproducible_json.sh © 2014 Holger Levsen <holger at layer-acht.org>
+# Copyright © 2015-2025 Holger Levsen <holger at layer-acht.org>
+# Based on reproducible_json.sh
+# © 2014 Holger Levsen <holger at layer-acht.org>
 # Licensed under GPL-2
 #
 # Depends: python3
@@ -14,7 +15,6 @@
 import os
 import json
 import apt_pkg
-apt_pkg.init_system()
 import tempfile
 import subprocess
 
@@ -28,6 +28,8 @@ from rblib.const import (
     filter_query,
 )
 
+apt_pkg.init_system()
+
 output = []
 output4tracker = []
 
@@ -41,7 +43,7 @@ query = text("SELECT s.name, r.version, s.suite, s.architecture, r.status, r.bui
         "WHERE status != '' AND s.distribution = :distro AND (( status != 'FTBFS' ) OR " \
         " ( status = 'FTBFS' and NOT exists (SELECT FROM NOTES AS n WHERE n.package_id = r.package_id AND ( " + filter_query + " ))))")
 
-result = sorted(query_db(query, distro=distro_id))
+result = sorted(query_db(query, {"distro": distro_id}))
 log.info('\tprocessing ' + str(len(result)))
 
 keys = ['package', 'version', 'suite', 'architecture', 'status', 'build_date']



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/bee35702c2bb3bad7dd6ce8a9e98ae8804a2ce1b

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/bee35702c2bb3bad7dd6ce8a9e98ae8804a2ce1b
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20250811/74e646dc/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list