blob: 1bce0dbaf2116cc20509712c9d0f4e1809cc8894 (
plain)
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
|