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 | |
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')
-rw-r--r-- | perl-install/any.pm | 4 | ||||
-rw-r--r-- | perl-install/install/NEWS | 3 |
2 files changed, 6 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 { diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index b10f5b8bb..85218abae 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,6 +1,9 @@ - adjust partition size suggestion o increase / size to 12GB (instead of 8) o create separate /home starting at 13GB drives (instead of 7) +- when setting update media, make gurpmi.addmedia auto close instead + of waiting for user pressing "close" button on "media added with + success" dialogs Version 12.18 - 24 March 2009 |