aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-26 18:21:31 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-26 18:21:31 +0000
commit2485367155e9a7d4a4efa5a019b731c3390b3ddf (patch)
tree6a78143c79aacc27d95cc8127b6b5b30d8b440ab /Rpmdrake
parent9b0ae66578c22ffee2d97a82282f0bc2fbcf0038 (diff)
downloadrpmdrake-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')
-rw-r--r--Rpmdrake/gui.pm6
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');