diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-04-18 00:48:28 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-04-18 00:49:36 +0200 |
commit | 57693f2fe77d6c17d0cfd8fa6952c6f6092d1dbe (patch) | |
tree | 852dc96f7e8991960bd25d48083cef96979930b5 /bin | |
parent | 9c0d630bb0a416465e701d509df25e6ed23fbb99 (diff) | |
download | jenkins.debian.net-57693f2fe77d6c17d0cfd8fa6952c6f6092d1dbe.tar.xz |
reproducible: scheduler: fix the removing packages part
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_scheduler.py | 3 |
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 ' + |