diff options
author | João Victor Duarte Martins <jvdm@mandriva.com.br> | 2011-03-01 14:22:32 +0000 |
---|---|---|
committer | João Victor Duarte Martins <jvdm@mandriva.com.br> | 2011-03-01 14:22:32 +0000 |
commit | 6472ed62aa7c59b5a09052879a36a87baa249370 (patch) | |
tree | d34fcd2a5a422ddc553a8575059c99e4fcde1be8 /Rpmdrake/gui.pm | |
parent | 3b738d5940f1fd154702cfaab5773b60e3c94a8c (diff) | |
download | rpmdrake-6472ed62aa7c59b5a09052879a36a87baa249370.tar rpmdrake-6472ed62aa7c59b5a09052879a36a87baa249370.tar.gz rpmdrake-6472ed62aa7c59b5a09052879a36a87baa249370.tar.bz2 rpmdrake-6472ed62aa7c59b5a09052879a36a87baa249370.tar.xz rpmdrake-6472ed62aa7c59b5a09052879a36a87baa249370.zip |
Fix offering of updates from media not configured as update (#60891).
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r-- | Rpmdrake/gui.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 5ed9f226..4f7de2ca 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -622,9 +622,9 @@ sub is_updatable { } sub pkgs_provider { - my ($options, $mode, %options) = @_; + my ($mode, %options) = @_; return if !$mode; - my $h = &get_pkgs($options); # was given (1, @_) for updates + my $h = &get_pkgs(%options); ($urpm, $descriptions) = @$h{qw(urpm update_descr)}; $pkgs = $h->{all_pkgs}; %filters = ( @@ -920,7 +920,7 @@ Do you really want to install all the selected packages?"), yesno => 1) my $res = $callback_action->($urpm, $pkgs); if (!$res) { $force_rebuild = 1; - pkgs_provider({ skip_updating_mu => 1 }, $options->{tree_mode}, if_($Rpmdrake::pkg::probe_only_for_updates, pure_updates => 1)); + pkgs_provider($options->{tree_mode}, if_($Rpmdrake::pkg::probe_only_for_updates, pure_updates => 1), skip_updating_mu => 1); reset_search(); $size_selected = 0; (undef, $size_free) = MDK::Common::System::df('/usr'); |