diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-01-13 10:50:07 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-01-13 10:50:07 +0000 |
commit | 08a247213e33fd3e41981bf58706f554586117e9 (patch) | |
tree | 7c468a6ae48cb54d1e8d5168ea9a727bfb496fe9 | |
parent | 62bb5e1cad0c84197c982ced7948965a8fe47196 (diff) | |
download | urpmi-08a247213e33fd3e41981bf58706f554586117e9.tar urpmi-08a247213e33fd3e41981bf58706f554586117e9.tar.gz urpmi-08a247213e33fd3e41981bf58706f554586117e9.tar.bz2 urpmi-08a247213e33fd3e41981bf58706f554586117e9.tar.xz urpmi-08a247213e33fd3e41981bf58706f554586117e9.zip |
Remove force_local download option (which was always on)
-rwxr-xr-x | gurpmi2 | 2 | ||||
-rw-r--r-- | urpm.pm | 7 | ||||
-rwxr-xr-x | urpmi | 2 | ||||
-rwxr-xr-x | urpmq | 2 |
4 files changed, 2 insertions, 11 deletions
@@ -198,7 +198,6 @@ sub do_install_3 () { $vbox->pack_start($progressbar, 0, 0, 0); change_mainw($vbox); $urpm->copy_packages_of_removable_media($list, \%sources, - force_local => 1, ask_for_medium => sub { my $w = Gtk2::MessageDialog->new($mainw, [qw(modal destroy-with-parent)], 'warning', 'ok-cancel', N("Please insert the medium named \"%s\" on device [%s]", $_[0], $_[1]) @@ -225,7 +224,6 @@ sub do_install_3 () { limit_rate => $urpm->{options}{'limit-rate'}, compress => $urpm->{options}{compress}, resume => $urpm->{options}{resume}, - force_local => 1, callback => sub { my ($mode, $file, $percent) = @_; if ($mode eq 'start') { @@ -2781,12 +2781,7 @@ sub download_packages_of_distant_media { $error_sources->{$i} = $2; } } elsif ($url =~ m!^([^:]*):/(.*/([^/]*\.rpm))\Z!) { - if ($options{force_local}) { - #- will download now - $distant_sources{$i} = "$1:/$2"; - } else { - $sources->{$i} = "$1:/$2"; - } + $distant_sources{$i} = "$1:/$2"; #- will download now } else { $urpm->{error}(N("malformed URL: [%s]", $url)); } @@ -561,7 +561,6 @@ my %error_sources; $urpm->copy_packages_of_removable_media( $list, \%sources, verbose => $verbose > 0, - force_local => 1, ask_for_medium => (!$urpm->{options}{auto} || $allow_medium_change) && sub { my $msg = N("Please insert the medium named \"%s\" on device [%s]", $_[0], $_[1]); my $msg2 = N("Press Enter when ready..."); @@ -606,7 +605,6 @@ foreach my $set (@{$state->{transaction} || []}) { limit_rate => $urpm->{options}{'limit-rate'}, compress => $urpm->{options}{compress}, resume => $urpm->{options}{resume}, - force_local => 1, callback => sub { my ($mode, $file, $percent, $total, $eta, $speed) = @_; goto &urpm::download::sync_logger; @@ -331,7 +331,7 @@ if ($urpm::args::options{list_aliases}) { }; $packer->extract($tmp_header_dir, @headers); } elsif (!%downloads) { - %downloads = $urpm->download_source_packages({}, $list, force_local => 1, nolock => $urpm::args::options{nolock}); + %downloads = $urpm->download_source_packages({}, $list, nolock => $urpm::args::options{nolock}); } } } |