You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Colin Watson 2b55cb6d8b write to apt.conf.new and rename at the end, to avoid trashing apt.conf if we backup part-way through 16 years ago
debian * Don't bother looking for security updates for unstable. 16 years ago
generators write to apt.conf.new and rename at the end, to avoid trashing apt.conf if we backup part-way through 16 years ago
README apt, apt-src lines -> deb, deb-src lines 16 years ago
TODO misc doc updates 16 years ago
apt-setup write to apt.conf.new and rename at the end, to avoid trashing apt.conf if we backup part-way through 16 years ago
apt-setup-verify append to $saveto, so that we get more than just the last generated line 16 years ago

README

apt-setup is used to generate an /etc/apt/sources.list for the installed
system. It does this by creating a new sources.list file (commenting out
the previous contents) and then running each program in
/usr/lib/apt-setup/generators/ in turn (run-parts ordering). Each generator
is passed the name of a temporary file that it can write sources.list lines
(and comments) to.

After the generator finishes writing the file, apt-setup-verify will be run
on it to verify that each line of the sources sources works, and it will be
added to the sources.list. Generators can also run apt-setup-verify
themselves and do their own error recovery if it fails. apt-setup-verify
tests each line of the file and comments out lines that do not work, and
exits nonzero if all deb and deb-src lines in the file failed.

Generators should add both "deb" lines and corresponding
deb-src lines to the sources.list. apt-setup-verify will handle commenting
out any deb-src lines for unavailable sources.

Generators can ask configuration questions using debconf. To support
backing up, generators should exit with the special return code of 10 if
the user backs up from their first question. Each generator should provide
a progress bar text template named apt-setup/progress/<generator>, where
<generator> is the script's name with leading numbers removed.

Note that apt-setup and its generators may be run against some other system
in a chroot. (i.e., when installing Debian.) If apt-setup is running this
way, then ROOT will be set to the root of the chroot that it is acting on
and all sources.list validation will occur inside the chroot.

apt-setup is split into several udebs that contain different generators.
These udebs are installed depending on the type of install; for a install
from CD, cdrom-detect queues apt-cdrom-setup for install, for an install
from the network, choose-mirror queues apt-mirror-setup, etc.