From c023fc2aa7039577670782d628906090980a3c8d Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 13 Oct 2009 16:59:57 +0000 Subject: add --download-all options to enable downloading of all packages before install --- pod/urpmi.8.pod | 7 +++++++ urpm/args.pm | 1 + urpmi | 1 + 3 files changed, 9 insertions(+) diff --git a/pod/urpmi.8.pod b/pod/urpmi.8.pod index 5cd5dc8e..287c462e 100644 --- a/pod/urpmi.8.pod +++ b/pod/urpmi.8.pod @@ -257,6 +257,13 @@ Configure urpmi on the fly from a distrib tree, useful to install a chroot with the B<--root> option. See the description of the B<--distrib> option in the C manpage. +=item B<--download-all> + +By default, urpmi will download packages when they are needed. This can be +problematic when connection failures happen during a big upgrade. When this +option is set, urpmi will first download all the needed packages and proceed +to install them if it managed to download them all. + =item B<--downloader> I Use a specific program for downloading distant files via http or ftp. diff --git a/urpm/args.pm b/urpm/args.pm index 28b2ef31..d9e26718 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -130,6 +130,7 @@ my %options_spec = ( 'parallel=s' => \$::parallel, 'metalink!' => sub { $urpm->{options}{metalink} = $_[1] }, + 'download-all!' => sub { $urpm->{options}{'download-all'} = $_[1] }, # deprecated in favor of --downloader xxx wget => sub { $urpm->{options}{downloader} = 'wget' }, diff --git a/urpmi b/urpmi index de0a29a0..97b06882 100755 --- a/urpmi +++ b/urpmi @@ -121,6 +121,7 @@ usage: ") . N(" --use-distrib - configure urpmi on the fly from a distrib tree, useful to install a chroot with --root option. ") . N(" --metalink - generate and use a local metalink. +") . N(" --download-all - download all needed packages before trying to install them ") . N(" --downloader - program to use to retrieve distant files. known programs: %s ", join(', ', urpm::download::ftp_http_downloaders())) -- cgit v1.2.1