From 2433f821dcb571c26135c39f6695f863622b2322 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Thu, 26 Feb 2015 19:19:17 +0100 Subject: reproducible: scheduler: fix UnboundLocalError for new packages --- bin/reproducible_scheduler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py index 168a5261..86f2aba3 100755 --- a/bin/reproducible_scheduler.py +++ b/bin/reproducible_scheduler.py @@ -80,6 +80,7 @@ def update_sources_tables(suite): result = query_db(query)[0] except IndexError: # new package pkgs_to_add.append((pkg[0], pkg[1], pkg[2], 'amd64')) + continue pkg_id = result[0] old_version = result[1] if version_compare(pkg[1], old_version) > 0: -- cgit v1.2.3-70-g09d2