update
This commit is contained in:
parent
003a22ca6e
commit
45076c5231
11 changed files with 230 additions and 61 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue