From 7b17b69d8d525fd9da047e82a4dab57a6eef138a Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 10 Nov 2016 15:58:14 +0000 Subject: reproducible Debian: rework META_PKGSET; no functional change. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Holger Levsen (+adopted to use _ as dummy varibleā€¦) --- bin/reproducible_common.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bin/reproducible_common.py') 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}) -- cgit v1.2.3-54-g00ecf