aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-26 11:10:01 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-26 11:10:01 +0000
commitae1964f83e161b508de9fd17edf0e5077cd3d415 (patch)
treef61c411f622933e07b25d41613443f033e60273a /Rpmdrake
parent6b918b17c3dbecf6ae23e8dbcf569275f077f8a5 (diff)
downloadrpmdrake-ae1964f83e161b508de9fd17edf0e5077cd3d415.tar
rpmdrake-ae1964f83e161b508de9fd17edf0e5077cd3d415.tar.gz
rpmdrake-ae1964f83e161b508de9fd17edf0e5077cd3d415.tar.bz2
rpmdrake-ae1964f83e161b508de9fd17edf0e5077cd3d415.tar.xz
rpmdrake-ae1964f83e161b508de9fd17edf0e5077cd3d415.zip
(get_pkgs) do not pass a useless parameter
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/gui.pm2
-rwxr-xr-xRpmdrake/pkg.pm4
2 files changed, 3 insertions, 3 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 6bce5bea..8d82f42a 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -428,7 +428,7 @@ sub switch_pkg_list_mode {
sub pkgs_provider {
my ($options, $mode, %options) = @_;
return if !$mode;
- my $h = &get_pkgs($urpm, $options); # was given (1, @_) for updates
+ my $h = &get_pkgs($options); # was given (1, @_) for updates
($urpm, $descriptions) = @$h{qw(urpm update_descr)};
$pkgs = $h->{all_pkgs};
%filter_methods = (
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 200ece85..24940866 100755
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -221,7 +221,7 @@ Then, restart %s.", $rpmdrake::myname_update)), myexit(-1);
our $probe_only_for_updates;
sub get_pkgs {
- my ($urpm, $opts) = @_;
+ my ($opts) = @_;
my %update_descr;
@update_medias = ();
my $w = $::main_window;
@@ -231,7 +231,7 @@ sub get_pkgs {
my $_flush_guard = Gtk2::GUI_Update_Guard->new;
my $error_happened;
- $urpm = urpm->new;
+ my $urpm = urpm->new;
$urpm->{fatal} = sub {
$error_happened = 1;
interactive_msg(N("Fatal error"),