From e5d16b671f2a625893731b4ea0bd684bbd444323 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Wed, 24 Nov 2004 10:00:36 +0000 Subject: Initial support for accessing source package data Author: mdz Date: 2003-07-23 02:20:24 GMT Initial support for accessing source package data --- doc/examples/sources.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 doc/examples/sources.py (limited to 'doc') diff --git a/doc/examples/sources.py b/doc/examples/sources.py new file mode 100644 index 00000000..79514621 --- /dev/null +++ b/doc/examples/sources.py @@ -0,0 +1,9 @@ +#!/usr/bin/python + +import apt_pkg + +apt_pkg.init() + +sources = apt_pkg.GetPkgSrcRecords() +while sources.Lookup('hello'): + print sources.Package, sources.Version, sources.Maintainer, sources.Section, `sources.Binaries` -- cgit v1.2.3