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:
API_MAP = json.load(f)
MINIMALS = set()
minimals = requests.get(
'https://gitlab.suse.de/qa-maintenance/metadata/raw/master/packages-to-be-tested-on-minimal-systems')
for line in minimals.text.split('\n'):
if line.startswith('#') or line.startswith(' ') or len(line) == 0:
continue
MINIMALS.add(line)
MINIMALS = {
x.rstrip()
for x in requests.get(
'https://gitlab.suse.de/qa-maintenance/metadata/raw/master/packages-to-be-tested-on-minimal-systems').iter_lines()
if len(x) > 0 and not(x.startswith("#") or x.startswith(' '))}
class Update(object):