File: records.py

package info (click to toggle)
python-apt 0.7.7.1%2Bnmu1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,276 kB
  • ctags: 930
  • sloc: cpp: 4,126; python: 3,108; makefile: 52
file content (12 lines) | stat: -rwxr-xr-x 283 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python

import apt

cache = apt.Cache()

for pkg in cache:
   if not pkg.candidateRecord:
      continue
   if pkg.candidateRecord.has_key("Task"):
      print "Pkg %s is part of '%s'" % (pkg.name, pkg.candidateRecord["Task"].split())
      #print pkg.candidateRecord