summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-04-18 00:48:28 +0200
committerHolger Levsen <holger@layer-acht.org>2015-04-18 00:49:36 +0200
commit57693f2fe77d6c17d0cfd8fa6952c6f6092d1dbe (patch)
tree852dc96f7e8991960bd25d48083cef96979930b5 /bin
parent9c0d630bb0a416465e701d509df25e6ed23fbb99 (diff)
downloadjenkins.debian.net-57693f2fe77d6c17d0cfd8fa6952c6f6092d1dbe.tar.xz
reproducible: scheduler: fix the removing packages part
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_scheduler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 78d6fcb6..2a52ce3f 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 ' +