From 8ad58480ce8a161519339b41eacefc26059bebf7 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 4 Sep 2007 16:28:25 +0200 Subject: * python/metaindex.cc: - added support for the metaIndex objects * python/sourceslist.cc: - support new "List" attribute that returns the list of metaIndex source entries --- doc/examples/metaindex.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 doc/examples/metaindex.py (limited to 'doc') diff --git a/doc/examples/metaindex.py b/doc/examples/metaindex.py new file mode 100644 index 00000000..1bce0dba --- /dev/null +++ b/doc/examples/metaindex.py @@ -0,0 +1,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 -- cgit v1.2.3