mirror of
https://github.com/lilydjwg/archrepo2.git
synced 2025-03-10 12:02:43 +00:00
11 lines
300 B
Python
Executable file
11 lines
300 B
Python
Executable file
#!/usr/bin/env python3
|
|
# vim:fileencoding=utf-8
|
|
|
|
from subprocess import getoutput
|
|
allpkgs = getoutput(r"locate -be --regex '\.pkg\.tar\.xz$'").split('\n')
|
|
|
|
from pkgreader import readpkg
|
|
for p in allpkgs:
|
|
print('reading package:', p)
|
|
d = readpkg(p)
|
|
print('desc:', d.get('pkgdesc', '(nothing)'))
|