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

Bug#800500: Bug#800499: SystemError on unreadable files in sources.list.d



On Wed, Sep 30, 2015 at 10:19:42AM +0200, Sebastien Bacher wrote:
> Le 30/09/2015 10:17, Julian Andres Klode a écrit :
> > Unreadable sources.list files are an unsupported mode of operation
> > and will not be supported in neither APT nor python-apt (which
> > directly calls the functions from APT).
> 
> Does it mean each python-apt client should code should have a try/except
> handling when using apt.Cache()? Wouldn't it be easier to just skip over
> the unreadable sources?

If we (actually APT) skip over unreadable sources.list files, the view
of the system state would be inconsistent. A new cache would have to be
generated in-memory not containing packages from that sources which would
change pinning, and also dependency resolution.

It also hides an error: Those files should not be unreadable. If a
sources.list file is unreadable, that's an error in the user or the
program creating it.

APT could get around displaying a warning instead, but this would not
work for python-apt, as the warning would be silently discarded.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

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

Be friendly, do not top-post, and follow RFC 1855 "Netiquette".
    - If you don't I might ignore you.


Reply to: