diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-10 15:07:34 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-10 15:07:34 +0000 |
commit | aa27ed8c0d2ff24a1289993076204d4cb7a1f60e (patch) | |
tree | 617a48c4f2626c78dcb4ed54cde8bd8999b28aba /Rpmdrake/pkg.pm | |
parent | c96ad4891f2c434bbab9008fd118670ad05a322d (diff) | |
download | rpmdrake-aa27ed8c0d2ff24a1289993076204d4cb7a1f60e.tar rpmdrake-aa27ed8c0d2ff24a1289993076204d4cb7a1f60e.tar.gz rpmdrake-aa27ed8c0d2ff24a1289993076204d4cb7a1f60e.tar.bz2 rpmdrake-aa27ed8c0d2ff24a1289993076204d4cb7a1f60e.tar.xz rpmdrake-aa27ed8c0d2ff24a1289993076204d4cb7a1f60e.zip |
(deps_msg,perform_installation,toggle_nodes) use new formatlistpkg() for better rendering
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rwxr-xr-x | Rpmdrake/pkg.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 0aa9d32f..0ec4e735 100755 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -548,12 +548,12 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( @{$urpm->{ask_remove}} = sort urpm::select::removed_packages($urpm, $urpm->{state}); my @to_remove = map { if_($pkgs->{$_}{selected} && !$pkgs->{$_}{pkg}->flag_upgrade, $pkgs->{$_}{urpm_name}) } keys %$pkgs; - my $r = join "\n", urpm::select::translate_why_removed($urpm, $urpm->{state}, @to_remove); + my $r = formatlistpkg(map { scalar(urpm::select::translate_why_removed_one($urpm, $urpm->{state}, $_)) } @to_remove); my $install_count = int(@pkgs); my $to_install = $install_count == 0 ? '' : ( P("The following package is going to be installed:", "The following %d packages are going to be installed:", $install_count, $install_count) - . "\n" . formatlistpkg(map { s!.*/!!; $_ } @pkgs) . "\n"); + . "\n" . formatlistpkg(map { print ">> $_\n"; s!.*/!!; $_ } @pkgs) . "\n"); my $remove_count = scalar(@to_remove); interactive_msg(($to_install ? N("Confirmation") : N("Some packages need to be removed")), ($r ? |