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

Bug#456141: python-apt: no support for index files (Packages, Sources) in apt_pkg



tag 456141 confirmed
owner 456141 !
thanks

On Thu, Dec 13, 2007 at 12:12:05AM -0800, Cameron Dale wrote:
> Package: python-apt
> Version: 0.7.3.1
> Severity: normal
> 
> 
> There doesn't seem to be support for accessing the information on index
> files, such as Packages and Sources, through apt_pkg. I'm looking for the
> information that is contained in apt-pkg/indexrecords.h.
> 
> FWIW, I'm trying to get the size and hash information contained in the
> Release file for these index files. I don't think there's any way to
> get it right now, though I may be wrong.
I'm working on it for 0.7.92. I guess we should export
	(a) indexRecords
	(b) indexRecords::checkSum
	(c) HashString

The API could look like (we export 'lookup' as well, to be complete):

>>> index_record['Contents-i386.gz']
(HashString, size)

Then you could use hashstring.verify_file(filename) to verify
a file.


-- 
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/

Attachment: signature.asc
Description: Digital signature


Reply to: