summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.py
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2016-11-10 15:58:14 +0000
committerHolger Levsen <holger@layer-acht.org>2016-11-10 17:14:22 +0100
commit7b17b69d8d525fd9da047e82a4dab57a6eef138a (patch)
tree53a102f13e8240596a4c555ac4fdfedfddf63649 /bin/reproducible_common.py
parent7ff6da81801d36553e5a54b147657c9e6bd27c41 (diff)
downloadjenkins.debian.net-7b17b69d8d525fd9da047e82a4dab57a6eef138a.tar.xz
reproducible Debian: rework META_PKGSET; no functional change.
Signed-off-by: Holger Levsen <holger@layer-acht.org> (+adopted to use _ as dummy varible…)
Diffstat (limited to 'bin/reproducible_common.py')
-rwxr-xr-xbin/reproducible_common.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index b23cb0e6..eefef434 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -89,12 +89,10 @@ JENKINS_URL = 'https://jenkins.debian.net'
# global package set definitions
# META_PKGSET[pkgset_id] = (pkgset_name, pkgset_group)
# csv file columns: (pkgset_group, pkgset_name)
-META_PKGSET = {}
-pkgset_id = 0
+META_PKGSET = []
with open(os.path.join(BIN_PATH, './reproducible_pkgsets.csv'), newline='') as f:
for line in csv.reader(f):
- pkgset_id += 1
- META_PKGSET[pkgset_id] = (line[1], line[0])
+ META_PKGSET.append((line[1], line[0]))
# init the database data and connection
DB_ENGINE = create_engine("sqlite:///" + REPRODUCIBLE_DB, connect_args={'timeout': 60})