summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-10-13 16:59:57 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-10-13 16:59:57 +0000
commitc023fc2aa7039577670782d628906090980a3c8d (patch)
tree4ce3285caa1e5f3198b765f9342e41f3dd8e0bc0
parent83bd67e9ed8ea3aa5c2ecae387e80705a2e8310c (diff)
downloadurpmi-c023fc2aa7039577670782d628906090980a3c8d.tar
urpmi-c023fc2aa7039577670782d628906090980a3c8d.tar.gz
urpmi-c023fc2aa7039577670782d628906090980a3c8d.tar.bz2
urpmi-c023fc2aa7039577670782d628906090980a3c8d.tar.xz
urpmi-c023fc2aa7039577670782d628906090980a3c8d.zip
add --download-all options to enable downloading of all packages before install
-rw-r--r--pod/urpmi.8.pod7
-rw-r--r--urpm/args.pm1
-rwxr-xr-xurpmi1
3 files changed, 9 insertions, 0 deletions
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<urpmi.addmedia> 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<program name>
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()))