File: records.py

package info (click to toggle)
python-apt 2.2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,016 kB
  • sloc: cpp: 10,180; python: 7,691; makefile: 96; sh: 18
file content (13 lines) | stat: -rwxr-xr-x 299 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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