Generate minimals with set compression

Also fixes problem with unnecessary spaces in list of packages
This commit is contained in:
Ondřej Súkup 2017-09-07 18:53:07 +02:00
parent 36f1995f59
commit a5f2c93c6e
No known key found for this signature in database
GPG Key ID: 18E6D11A219AF3B7

View File

@ -100,13 +100,11 @@ with open(opa.join(data_path, "data/repos.json"), 'r') as f:
with open(opa.join(data_path, "data/apimap.json"), 'r') as f: with open(opa.join(data_path, "data/apimap.json"), 'r') as f:
API_MAP = json.load(f) API_MAP = json.load(f)
MINIMALS = set() MINIMALS = {
minimals = requests.get( x.rstrip()
'https://gitlab.suse.de/qa-maintenance/metadata/raw/master/packages-to-be-tested-on-minimal-systems') for x in requests.get(
for line in minimals.text.split('\n'): 'https://gitlab.suse.de/qa-maintenance/metadata/raw/master/packages-to-be-tested-on-minimal-systems').iter_lines()
if line.startswith('#') or line.startswith(' ') or len(line) == 0: if len(x) > 0 and not(x.startswith("#") or x.startswith(' '))}
continue
MINIMALS.add(line)
class Update(object): class Update(object):