From 5d61e9a8a6613954e36bc49e548e0c83f445f11f Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 27 Sep 2012 17:16:43 +0000 Subject: (get_summary) do not bother caching summary --- Rpmdrake/gui.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Rpmdrake') diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 95d90df1..9dcb3bf4 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -103,8 +103,7 @@ sub compute_main_window_size { sub get_summary { my ($key) = @_; - $pkgs->{$key}{summary} ||= $pkgs->{$key}{pkg}->summary; - my $summary = translate($pkgs->{$key}{summary}); + my $summary = translate($pkgs->{$key}{pkg}->summary); require utf8; utf8::valid($summary) ? $summary : @{[]}; } @@ -342,7 +341,7 @@ sub format_pkg_info { ), @source_info, '', # extra empty line - format_field(N("Summary: ")) . $pkg->{summary}, + format_field(N("Summary: ")) . $upkg->summary, '', # extra empty line if_( $MODE eq 'update', -- cgit v1.2.1