summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.py
diff options
context:
space:
mode:
authorValerie R Young <spectranaut@riseup.net>2016-06-17 15:04:34 -0400
committerHolger Levsen <holger@layer-acht.org>2016-07-05 17:24:55 +0200
commit658ffb103ece627fc8e924ba3cefe81aa55d24cc (patch)
treeafe153889a6f554b4b896c598dbd1a7a0c072aa4 /bin/reproducible_common.py
parent7179b3cea23e75ce9be5bd94daa541410534d62d (diff)
downloadjenkins.debian.net-658ffb103ece627fc8e924ba3cefe81aa55d24cc.tar.xz
reproducible debian: move META_PKGSET definition to csv file
Signed-off-by: Mattia Rizzolo <mattia@debian.org> Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_common.py')
-rwxr-xr-xbin/reproducible_common.py9
1 files changed, 9 insertions, 0 deletions
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)