aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-26 18:21:35 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-26 18:21:35 +0000
commitf3f66a027365956353355a9dd81aa0932c8840b5 (patch)
treebd256bb7c53ea95c3b0c177f6b64198c8f1b4ba0 /Rpmdrake/pkg.pm
parent2485367155e9a7d4a4efa5a019b731c3390b3ddf (diff)
downloadrpmdrake-f3f66a027365956353355a9dd81aa0932c8840b5.tar
rpmdrake-f3f66a027365956353355a9dd81aa0932c8840b5.tar.gz
rpmdrake-f3f66a027365956353355a9dd81aa0932c8840b5.tar.bz2
rpmdrake-f3f66a027365956353355a9dd81aa0932c8840b5.tar.xz
rpmdrake-f3f66a027365956353355a9dd81aa0932c8840b5.zip
(get_pkgs,warn_about_media) pass a hash of options instead of a hash reference
also rename %opts as %options btw (inspirated from mdv)
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r--Rpmdrake/pkg.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index ea9e3e36..66b09b08 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -228,7 +228,7 @@ sub download_callback {
my (@update_medias, $is_update_media_already_asked);
sub warn_about_media {
- my ($w, $opts) = @_;
+ my ($w, %options) = @_;
return if $::MODE ne 'update';
return if $::rpmdrake_options{'no-media-update'};
@@ -246,7 +246,7 @@ sub warn_about_media {
$::rpmdrake_options{'no-media-update'} ||= 1;
if (@update_medias > 0) {
- if (!$opts->{skip_updating_mu} && !$is_update_media_already_asked) {
+ if (!$options{skip_updating_mu} && !$is_update_media_already_asked) {
$is_update_media_already_asked = 1;
$::rpmdrake_options{'no-confirmation'} or interactive_msg(N("Confirmation"),
N("I need to contact the mirror to get latest update packages.
@@ -431,14 +431,14 @@ sub get_updates_list {
}
sub get_pkgs {
- my ($opts) = @_;
+ my (%options) = @_;
my $w = $::main_window;
my $gurpm = Rpmdrake::gurpm->new(1 ? N("Please wait") : N("Package installation..."), N("Initializing..."), transient => $::main_window);
my $_gurpm_clean_guard = before_leaving { undef $gurpm };
#my $_flush_guard = Gtk2::GUI_Update_Guard->new;
- warn_about_media($w, $opts);
+ warn_about_media($w, %options);
my $urpm = open_urpmi_db(update => $probe_only_for_updates && !is_it_a_devel_distro());