blob: bc08ad691832a77e8a8e243568d7425c65bba4f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/python
import apt_pkg
apt_pkg.init()
#cache = apt_pkg.Cache()
#sources = apt_pkg.SourceRecords(cache)
sources = apt_pkg.SourceRecords()
sources.Restart()
while sources.Lookup('hello'):
print sources.Package, sources.Version, sources.Maintainer, \
sources.Section, `sources.Binaries`
print sources.Files
print sources.Index.ArchiveURI(sources.Files[0][2])
|