diff options
author | Thierry Vignaud <tv@mageia.org> | 2013-03-23 11:24:42 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2013-03-23 11:24:42 +0000 |
commit | ed40bd7b9a8e3ede9b17f9be468421f40ce14bf4 (patch) | |
tree | 21a127d574ced24b97418af686c500e443862704 | |
parent | 8b43b4db7b04ea053ad86ac5f825395e31d320ec (diff) | |
download | urpmi-ed40bd7b9a8e3ede9b17f9be468421f40ce14bf4.tar urpmi-ed40bd7b9a8e3ede9b17f9be468421f40ce14bf4.tar.gz urpmi-ed40bd7b9a8e3ede9b17f9be468421f40ce14bf4.tar.bz2 urpmi-ed40bd7b9a8e3ede9b17f9be468421f40ce14bf4.tar.xz urpmi-ed40bd7b9a8e3ede9b17f9be468421f40ce14bf4.zip |
improved layout:
- only the package list needs a scrolling bar
- always display space information
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | gurpmi2 | 19 |
2 files changed, 15 insertions, 7 deletions
@@ -1,4 +1,7 @@ - gurpmi2: + o improved layout: + * only the package list needs a scrolling bar + * always display space information o display the addionnal space that will be used and the amount of downloaded packages instead of the total size of the packages (like urpmi) @@ -185,10 +185,15 @@ sub ask_choice { } sub ask_continue { - my ($msg, $nextclosure) = @_; + my ($msg, $nextclosure, $o_list, $o_end_msg) = @_; my $vbox = Gtk2::VBox->new(0, 5); $vbox->pack_start(new_label($msg), 1, 1, 0); $urpm->{log}($msg); + warn ">> o_list='$o_list'\n"; + if ($o_end_msg) { + $vbox->pack_start(new_label($o_list), 1, 1, 0); + $vbox->pack_start(new_label($o_end_msg), 1, 1, 0); + } my $continue_button = Gtk2::Button->new(but(N("_Ok"))); my $quit_button = Gtk2::Button->new(but(N("_Abort"))); $quit_button->signal_connect(clicked => sub { $urpm->{log}("=> cancel"); &quit(); exit 1 }); @@ -200,13 +205,13 @@ sub ask_continue { } sub ask_continue_if_no_auto { - my ($msg, $nextclosure) = @_; + my ($msg, $nextclosure, $o_list, $o_end_msg) = @_; if ($gurpmi::options{auto}) { $urpm->{log}($msg); $urpm->{log}("=> ok(auto)"); goto &$nextclosure; } else { - ask_continue($msg, $nextclosure); + ask_continue($msg, $nextclosure, $o_list, $o_end_msg); } } @@ -246,10 +251,10 @@ sub do_install_2 () { ? ask_continue_if_no_auto( (scalar(@to_install) == 1 ? N("To satisfy dependencies, the following package is going to be installed:") - : N("To satisfy dependencies, the following packages are going to be installed:")) - . join("\n", '', @to_install, '') - . "\n" . $msg2 . $msg2_ . $msg3, - , \&do_install_3) + : N("To satisfy dependencies, the following packages are going to be installed:")), + \&do_install_3, + join("\n", @to_install), + $msg2 . $msg2_ . $msg3) : goto \&do_install_3; } |