astra / doc /examples /records.py
Lorenzob's picture
Upload folder using huggingface_hub
859a779 verified
raw
history blame
299 Bytes
#!/usr/bin/python3
import apt
cache = apt.Cache()
for pkg in cache:
if not pkg.candidate.record:
continue
if "Task" in pkg.candidate.record:
print("Pkg %s is part of '%s'" % (
pkg.name, pkg.candidate.record["Task"].split()))
#print pkg.candidateRecord