diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-03-26 18:21:31 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-03-26 18:21:31 +0000 |
commit | 2485367155e9a7d4a4efa5a019b731c3390b3ddf (patch) | |
tree | 6a78143c79aacc27d95cc8127b6b5b30d8b440ab /Rpmdrake/gui.pm | |
parent | 9b0ae66578c22ffee2d97a82282f0bc2fbcf0038 (diff) | |
download | rpmdrake-2485367155e9a7d4a4efa5a019b731c3390b3ddf.tar rpmdrake-2485367155e9a7d4a4efa5a019b731c3390b3ddf.tar.gz rpmdrake-2485367155e9a7d4a4efa5a019b731c3390b3ddf.tar.bz2 rpmdrake-2485367155e9a7d4a4efa5a019b731c3390b3ddf.tar.xz rpmdrake-2485367155e9a7d4a4efa5a019b731c3390b3ddf.zip |
(pkgs_provider) simplfy: only pass one hash of options
(inspirated from mdv)
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 e65811de..6a667751 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -624,9 +624,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 = ( @@ -923,7 +923,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'); |