summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-02-26 19:19:17 +0100
committerMattia Rizzolo <mattia@mapreri.org>2015-02-26 19:19:17 +0100
commit2433f821dcb571c26135c39f6695f863622b2322 (patch)
tree6534da8a000d3973ddb77e20b8e3412b379fddd6
parent8f85219ff16dfd34cff8dc5ced4b17843ba4bfcf (diff)
downloadjenkins.debian.net-2433f821dcb571c26135c39f6695f863622b2322.tar.xz
reproducible: scheduler: fix UnboundLocalError for new packages
-rwxr-xr-xbin/reproducible_scheduler.py1
1 files changed, 1 insertions, 0 deletions
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: