diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-10-16 18:09:27 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-10-16 18:09:27 +0000 |
commit | b14b750986f42ded70b4a65385a4c01d5e250936 (patch) | |
tree | a6978f99c4a221d0540e38290e6a5988322f8817 /mdkapplet-upgrade-helper | |
parent | 95e875ee64e7064dc12808f10a2aaf69e83b04cf (diff) | |
download | mgaonline-b14b750986f42ded70b4a65385a4c01d5e250936.tar mgaonline-b14b750986f42ded70b4a65385a4c01d5e250936.tar.gz mgaonline-b14b750986f42ded70b4a65385a4c01d5e250936.tar.bz2 mgaonline-b14b750986f42ded70b4a65385a4c01d5e250936.tar.xz mgaonline-b14b750986f42ded70b4a65385a4c01d5e250936.zip |
(confirm_upgrade) display a "download all packages at once" option and
offer to select where to download packages
Diffstat (limited to 'mdkapplet-upgrade-helper')
-rwxr-xr-x | mdkapplet-upgrade-helper | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mdkapplet-upgrade-helper b/mdkapplet-upgrade-helper index f7ba00c3..c04b9ee4 100755 --- a/mdkapplet-upgrade-helper +++ b/mdkapplet-upgrade-helper @@ -41,13 +41,16 @@ use Rpmdrake::open_db; ugtk2::add_icon_path("/usr/share/mdkonline/pixmaps/"); my ($log_file); -my $new_distro_version; +my ($new_distro_version, $download_dir); foreach my $opt (@ARGV) { if ($opt =~ /--(rpm-root|urpmi-root)=(.*)/) { $::rpmdrake_options{$1}[0] = $2; } elsif ($opt =~ /--new_distro_version=(.*)/) { $new_distro_version = $1; + } elsif ($opt =~ /--download-all=(.*)/) { + $download_dir = $1; } + } my $root = Rpmdrake::open_db::fast_open_urpmi_db()->{root}; @@ -85,6 +88,8 @@ sub check_available_free_space { sub run_gurpmi() { my @initial_args = ('--replacefiles', '--clean'); + push @initial_args, "--download-all=$download_dir" if $download_dir; + while ($refork_gurpmi) { my $ok = fork_gurpmi(@initial_args); |