DefaultAptSources

Differences between revisions 4 and 5
Revision 4 as of 2006-01-01 05:15:30
Size: 1111
Editor: S0106000000cc07fc
Comment: cat spec
Revision 5 as of 2006-02-21 12:32:20
Size: 1705
Editor: p54A64BDC
Comment: details for the implementation.
Deletions are marked like this. Additions are marked like this.
Line 22: Line 22:
Hide the warning/error when no network source information is available by default . Hide the warning/error when no network source information is available by default.
Line 26: Line 26:
The current implementation in the michael.vogt@ubuntu.com--2005/apt--ubuntu--0 branch works as followed. The methods backend will report a optional "FailReason" to the acquire code. On a "Timeout", "TmpResolveFailure" and "ConnectionRefused" it is assumed that the network is not available for this source and the attempt to fetch it will be canceld. The old signature and indexfiles for this source will be used and a waring (instead of a error) is issued. The list cleaner for /var/lib/apt/lists will not run when a apt-get update wasn't successful.
Line 28: Line 30:
=== Data preservation and migration === The code is available in the michael.vogt@ubuntu.com--2005/apt--ubuntu--0 branch. The coresponding changes are done in synaptic as well.
Line 30: Line 32:
== Outstanding issues ==
Line 32: Line 33:
== BoF agenda and discussion ==

Summary

Improve the handling for apt when it comes to network sources.

Rationale

As of Ubuntu 5.10, the default sources.list is dynamically generated based on (among other information) whether a network connection was available during the installation of the system. In order to be more consistent in the face of changing hardware (and changing support for hardware), it would be preferable if the network sources were always available, regardless of network availability during installation.

Use cases

Scope

Design

Hide the warning/error when no network source information is available by default.

Implementation

The current implementation in the michael.vogt@ubuntu.com--2005/apt--ubuntu--0 branch works as followed. The methods backend will report a optional "FailReason" to the acquire code. On a "Timeout", "TmpResolveFailure" and "ConnectionRefused" it is assumed that the network is not available for this source and the attempt to fetch it will be canceld. The old signature and indexfiles for this source will be used and a waring (instead of a error) is issued. The list cleaner for /var/lib/apt/lists will not run when a apt-get update wasn't successful.

Code

The code is available in the michael.vogt@ubuntu.com--2005/apt--ubuntu--0 branch. The coresponding changes are done in synaptic as well.


CategorySpec

DefaultAptSources (last edited 2008-08-06 16:32:36 by localhost)