diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-03-26 13:25:25 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-03-26 13:25:25 +0000 |
commit | aec3a06cb3d0fe1a9aab2f6184654a16cdd612b5 (patch) | |
tree | ef00758a2505d55387fe7402bc43725551aba474 /perl-install/any.pm | |
parent | d4272f295498a09395c9b00964489f346d89f7ea (diff) | |
download | drakx-aec3a06cb3d0fe1a9aab2f6184654a16cdd612b5.tar drakx-aec3a06cb3d0fe1a9aab2f6184654a16cdd612b5.tar.gz drakx-aec3a06cb3d0fe1a9aab2f6184654a16cdd612b5.tar.bz2 drakx-aec3a06cb3d0fe1a9aab2f6184654a16cdd612b5.tar.xz drakx-aec3a06cb3d0fe1a9aab2f6184654a16cdd612b5.zip |
(urpmi_add_all_media) make gurpmi.addmedia auto close instead of
waiting for user pressing "close" button on "media added with success"
dialogs
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r-- | perl-install/any.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm index 9b2730c0f..8a547e0d4 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -858,9 +858,11 @@ sub urpmi_add_all_media { require network::tools; return if !network::tools::has_network_connection(); my $wait; + my @options = ('--distrib', '--mirrorlist', '$MIRRORLIST'); if ($binary eq 'urpmi.addmedia') { $wait = $in->wait_message(N("Please wait"), N("Please wait, adding media...")); } elsif ($in->isa('interactive::gtk')) { + push @options, '--silent-success'; mygtk2::flush(); } @@ -870,7 +872,7 @@ sub urpmi_add_all_media { log::l("URPMI_ADDMEDIA_REASON $reason"); local $ENV{URPMI_ADDMEDIA_REASON} = $reason; - run_program::rooted($::prefix, $binary, '--distrib', '--mirrorlist', '$MIRRORLIST'); + run_program::rooted($::prefix, $binary, @options); } sub autologin { |