Adjust for API changes

We now return the packages namespaced by repo. REvert this in the code
for now to get the old behaviour back.
This commit is contained in:
Christoph Reiter 2020-09-15 21:10:01 +02:00
parent c13a6a7ced
commit 37fc4ffd3f

View File

@ -349,6 +349,11 @@ def get_buildqueue():
for pkg in r.json():
pkg['repo'] = pkg['repo_url'].split('/')[-1]
pkgs.append(pkg)
# restore old format for now
pkg['packages'] = [n for sub in pkg['packages'].values() for n in sub]
pkg['depends'] = [n for sub in pkg['depends'].values() for n in sub]
for name in pkg['packages']:
dep_mapping[name] = pkg