This commit is contained in:
Matthieu Bessat 2024-05-27 23:19:04 +02:00
parent 003a22ca6e
commit 45076c5231
11 changed files with 230 additions and 61 deletions

View file

@ -24,12 +24,17 @@ def flatten_packages(item):
flat_packages = flatten_packages(packages_tree)
names = []
native_names = []
aur_names = []
for p in flat_packages:
assert isinstance(p, dict)
if p['name'].startswith('aur/'):
aur_names.append(p['name'])
continue
names.append(p['name'])
native_names.append(p['name'])
print(json.dumps(names))
print(json.dumps({
"native": native_names,
"aur": aur_names
}))
# print(' '.join(names))