diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2004-01-14 18:28:54 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2004-01-14 18:28:54 +0000 |
commit | c301ed69c2adf38b1920691b75277e56895a3cbc (patch) | |
tree | 3cbc33361525bb515a9166e28ef16a1352c9c0b5 | |
parent | 2c409b18edf12b76b317b2b179a29ed6f6e546a6 (diff) | |
download | rpmdrake-c301ed69c2adf38b1920691b75277e56895a3cbc.tar rpmdrake-c301ed69c2adf38b1920691b75277e56895a3cbc.tar.gz rpmdrake-c301ed69c2adf38b1920691b75277e56895a3cbc.tar.bz2 rpmdrake-c301ed69c2adf38b1920691b75277e56895a3cbc.tar.xz rpmdrake-c301ed69c2adf38b1920691b75277e56895a3cbc.zip |
fix big performance penalty on long filelists since 2.1-36mdk
allowing correct display of filenames in RTL languages (#6865)
-rwxr-xr-x | rpmdrake | 6 | ||||
-rw-r--r-- | rpmdrake.spec | 4 |
2 files changed, 6 insertions, 4 deletions
@@ -604,8 +604,8 @@ or you already installed all of them.")); my $tag_tag = { 'foreground' => 'royalblue3', 'weight' => Gtk2::Pango->PANGO_WEIGHT_BOLD }; my $tag_fix = { 'font' => 'monospace' }; my @files = ([ N("Files:\n"), $tag_tag ], exists $pkgs->{$key}{files} - ? map { [ "\x{200e}$_\n", $tag_fix ] } @{$pkgs->{$key}{files}} - : [ N("(Not available)") ]); + ? [ join("\n", map { "\x{200e}$_" } @{$pkgs->{$key}{files}}), $tag_fix ] + : [ N("(Not available)") ]); my @chglo = ([ N("Changelog:\n"), $tag_tag ], @{$pkgs->{$key}{changelog} || [[ N("(Not available)") ]]}); my @source_info = ($MODE eq 'remove' || !@$max_info_in_descr ? () : ([ N("Medium: "), $tag_tag ], @@ -613,7 +613,7 @@ or you already installed all of them.")); [ N("Currently installed version: "), $tag_tag ], [ find_installed_version($pkgs->{$key}{pkg}) ], [ "\n" ])); my @max_info = if_(@$max_info_in_descr, $options{'changelog-first'} ? (@chglo, [ "\n" ], @files) - : (@files, [ "\n" ], @chglo)); + : (@files, [ "\n\n" ], @chglo)); [ [ N("Name: "), $tag_tag ], [ "$name\n" ], [ N("Version: "), $tag_tag ], [ "$version\n" ], [ N("Size: "), $tag_tag ], [ N("%s KB", int($pkgs->{$key}{pkg}->size/1024))."\n" ], diff --git a/rpmdrake.spec b/rpmdrake.spec index 884bfac3..03df6c92 100644 --- a/rpmdrake.spec +++ b/rpmdrake.spec @@ -104,7 +104,9 @@ rm -rf $RPM_BUILD_ROOT * Wed Jan 14 2004 Guillaume Cottenceau <gc@mandrakesoft.com> 2.1.1-2mdk - fix wrongly using unavailable sorting method in remove mode after save in install mode - +- fix big performance penalty on long filelists since 2.1-36mdk + allowing correct display of filenames in RTL languages (#6865) + * Mon Jan 12 2004 Guillaume Cottenceau <gc@mandrakesoft.com> 2.1.1-1mdk - add ability to cancel packages downloads (#6317) - save sorting method at exit of rpmdrake for Lord Titi (#6051) |