[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 Thu, Jun 26, 2014 at 10:30:24PM +0200, Johannes Schauer wrote:
> Quoting David Kalnischkies (2014-06-26 21:48:42)
> > I think it is a bad idea to use our lib-directory directly.
> 
> if apt developers agree that it is a bad idea to allow 3rd party software
> access /var/lib/apt/lists, then please close this bug report.

Just to be clear: I think it is incorrect to use /var/lib/apt/lists
directly as you can never be sure what is in there.  If you get the
filename from the API on the other hand, that is "okay".

Compare it to "cat /var/lib/dpkg/info/apt.preinst" vs "dpkg-query
--control-show apt preinst" to get the content of preinst script.

For binary packages this exists already, but not for sources packages.
There is (also) no (simple) mapping from sources.list to
Packages/Sources files and back. Both could surely be added if we have
a compelling reason/user for this. apt-* tools so far just never needed
it so it doesn't exist. That said, I don't want to promise that apt
would instantly grow support for this or that.


I still haven't understood what you are actually trying to achieve and
why things like the "workaround" I mentioned last do not work for you so
I am 'happily' shooting into the dark here and not close it just yet.


Best regards

David Kalnischkies

Attachment: signature.asc
Description: Digital signature


Reply to: