Bug#456141: python-apt: no support for index files (Packages, Sources) in apt_pkg
On Sun, Jun 07, 2009 at 07:46:36PM -0700, Cameron Dale wrote:
> On Sat, Jun 6, 2009 at 1:30 PM, Julian Andres Klode<jak@debian.org> wrote:
> > I'm working on it for 0.7.92. I guess we should export
> > (a) indexRecords
> > (b) indexRecords::checkSum
> > (c) HashString
>
> Excellent, thanks for taking the time.
>
> > The API could look like (we export 'lookup' as well, to be complete):
> >
> >>>> index_record['Contents-i386.gz']
> > (HashString, size)
I have just add HashString and IndexRecords to the 'jak' branch in
revisions 262-263. I'm not providing a mapping operator record[''],
and a way to get the list of they keys, those will be added later.
You can try it out using the packages for i386 and amd64 at
deb http://people.debian.org/~jak/debian/ experimental/
For example, you could use lookup('Packages') of an IndexRecord object
on the release file of this repository (which is loaded using load()).
>
> Looks good. Thanks.
>
> Cameron
>
>
>
--
Julian Andres Klode - Free Software Developer
Debian Developer - Contributing Member of SPI
Ubuntu Member - Fellow of FSFE
Website: http://jak-linux.org/ XMPP: juliank@jabber.org
Debian: http://www.debian.org/ SPI: http://www.spi-inc.org/
Ubuntu: http://www.ubuntu.com/ FSFE: http://www.fsfe.org/
Reply to: