Re: python-apt, repositories
On Mon, Oct 18, 2021 at 01:10:02AM +0200, BW wrote:
> Perfect! I was able to find the related repository in the Packagefile
> for each version
>
> Example:
> <apt_pkg.PackageFile
> object:
> filename:'/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_main_binary-amd64_Packages'
> a=testing,
> c=main,
> v=,
> o=Debian,
> l=Debian
> arch='amd64'
> site='deb.debian.org'
> IndexType='Debian Package Index'
> Size=46045052
> ID:10
> >
>
> An additional question:
> The package-description for each version is also specified in a
> Packagefile + an index, e.g.
> filename: /var/lib/apt/lists/deb.debian.org_debian_dists_buster_main_i18n_Translation-en
> (29.375.817 bytes)
> Index: 2.604.160
> Is the index where the description starts in the file in bytes?
That's not for you to know :D
I mean yes, it should be.
But it's for passing to apt_pkg.PackageRecords.lookup(), not to
go play with it on your own :)
--
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer i speak de, en
Reply to: