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

Bug#594813: apt: ListUpdate does return True in the case of network errors



On So, 2010-08-29 at 20:31 +0200, Sebastian Heinlein wrote:
> Package: apt
> Version: 0.8.0
> Severity: normal
> 
> The ListUpdate method in cache.cc returns True if a download fails or
> there is a transient network error. It only emmits a warning.
> 
> This makes it impossible to handle download errors in higher libraries
> (python-apt) or finally aptdaemon, see
> https://bugs.edge.launchpad.net/aptdaemon/+bug/626144

Facts:
     1. If a host is not reachable it should not be treated as an error,
        as people have mirrors in their sources.list which are only
        available sometimes (mirror in private network).
     2. APT returns true in such cases and there is no way to display
        the warnings in graphical tools.
     3. python-apt drops warnings completely, unless there is also an
        error.

I don't have a solution for this issue right now, as we do not want to
break fact 1, and thus need to differentiate between the two errors.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

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





Reply to: