From 57693f2fe77d6c17d0cfd8fa6952c6f6092d1dbe Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sat, 18 Apr 2015 00:48:28 +0200 Subject: reproducible: scheduler: fix the removing packages part --- bin/reproducible_scheduler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/reproducible_scheduler.py') 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 ' + -- cgit v1.2.3-70-g09d2