[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#199716: python-apt: support for source packages would be nice



On Wed, Jul 02, 2003 at 08:15:57PM +0200, Jochen Voss wrote:

> it would be useful if python-apt would be able to browse source
> package records, e.g. to determine BuildDepends.  This would require
> wrappers around the methods and classes from <apt-pkg/srcrecords.h>.
> Maybe somebody has the knowledge and time to implement this.

I have implemented simple browsing of available source versions like this:

#!/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`

but this is not in CVS yet.

-- 
 - mdz



Reply to: