File: metaindex.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 (15 lines) | stat: -rw-r--r-- 297 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

import apt_pkg

apt_pkg.init()

sources = apt_pkg.GetPkgSourceList()
sources.ReadMainList()


for metaindex in sources.List:
    print metaindex
    print "URI: ",metaindex.URI
    print "Dist: ",metaindex.Dist
    print "IndexFiles: ","\n".join([str(i) for i in metaindex.IndexFiles])
    print