From 658ffb103ece627fc8e924ba3cefe81aa55d24cc Mon Sep 17 00:00:00 2001 From: Valerie R Young Date: Fri, 17 Jun 2016 15:04:34 -0400 Subject: reproducible debian: move META_PKGSET definition to csv file Signed-off-by: Mattia Rizzolo Signed-off-by: Holger Levsen --- bin/reproducible_common.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bin/reproducible_common.py') diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py index d9704052..cc69c95a 100755 --- a/bin/reproducible_common.py +++ b/bin/reproducible_common.py @@ -13,6 +13,7 @@ import os import re import sys +import csv import json import errno import atexit @@ -75,6 +76,13 @@ REPRODUCIBLE_URL = 'https://tests.reproducible-builds.org' DEBIAN_URL = 'https://tests.reproducible-builds.org/debian' JENKINS_URL = 'https://jenkins.debian.net' +# global package set definitions +# for unknown historical reasons the meta_pkgset list is 1-indexed +META_PKGSET = {} +with open(os.path.join(BIN_PATH, './meta_pkgset.csv'), newline='') as f: + for line in csv.reader(f): + META_PKGSET[int(line[0])] = line[1] + parser = argparse.ArgumentParser() group = parser.add_mutually_exclusive_group() group.add_argument("-d", "--debug", action="store_true") @@ -520,6 +528,7 @@ def get_status_icon(status): log.error('Status ' + status + ' not recognized') return (status, '', spokenstatus) + def strip_epoch(version): """ Stip the epoch out of the version string. Some file (e.g. buildlogs, debs) -- cgit v1.2.3-54-g00ecf