File: records.py

package info (click to toggle)
python-apt 0.9.3.12
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 3,796 kB
  • ctags: 2,078
  • sloc: cpp: 9,307; python: 6,565; makefile: 106; sh: 16
file content (13 lines) | stat: -rwxr-xr-x 301 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python

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