[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: scheduler: fix the removing packages part
Holger Levsen
holger at moszumanska.debian.org
Fri Apr 17 22:49:44 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 57693f2fe77d6c17d0cfd8fa6952c6f6092d1dbe
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Sat Apr 18 00:48:28 2015 +0200
reproducible: scheduler: fix the removing packages part
---
bin/reproducible_scheduler.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 78d6fcb..2a52ce3 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -108,8 +108,9 @@ def update_sources_tables(suite):
'WHERE name="{name}" ' +
'AND suite="{suite}"').format(name=pkg, suite=suite))
rmed_pkgs_id.extend(result)
- pkgs_to_rm.extend([(x[0], x[1], 'amd64') for x in result])
+ pkgs_to_rm.append((pkg, suite, 'amd64'))
log.debug('removed packages ID: ' + str([str(x[0]) for x in rmed_pkgs_id]))
+ log.debug('removed packages: ' + str(pkgs_to_rm))
cursor.executemany('DELETE FROM sources ' +
'WHERE id=?', rmed_pkgs_id)
cursor.executemany('DELETE FROM results ' +
--
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