Generate minimals with set compression
Also fixes problem with unnecessary spaces in list of packages
This commit is contained in:
parent
36f1995f59
commit
a5f2c93c6e
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user