diff options
Diffstat (limited to 'bin/reproducible_common.py')
-rwxr-xr-x | bin/reproducible_common.py | 9 |
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) |