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

Bug#752702: apt: please add a way to to retrieve the location of Packages/Sources files in /var/lib/apt/lists/



On Wed, Jun 25, 2014 at 10:16 PM, Johannes Schauer <j.schauer@email.de> wrote:
> Package: apt
> Version: 1.0.1
> Severity: wishlist
>
> Hi,
>
> some software in Debian works on Packages and Sources files. Instead of
> retrieving those from mirrors they could re-use the copies which are
> likely present in /var/lib/apt/lists/. But there exists no way to ask
> apt which mirror, suite or architecture any of these files belong to,
> short of parsing the description string returned by
> debPackagesIndex.Describe()

That software should use the API provided by APT to access APT files.
The layout of /var/lib/apt/lists and the contents of the files is an
implementation detail, we already broke the expectations of others
once when we renamed InRelease files to Release files if we could not
trust them. Furthermore, APT might store indices compressed in various
formats. With future archive changes, things might even become more
different.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.


Reply to: