aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-04-03 14:58:56 +0000
committerThierry Vignaud <tv@mandriva.org>2007-04-03 14:58:56 +0000
commit556dd726e3e7e0ab21fcabb5108bfbde57de4242 (patch)
treeca26269d269598b1549d70988cfa42c13a73dead
parent66999e19537af28d0bd21aee3e762663edca82ac (diff)
downloadrpmdrake-556dd726e3e7e0ab21fcabb5108bfbde57de4242.tar
rpmdrake-556dd726e3e7e0ab21fcabb5108bfbde57de4242.tar.gz
rpmdrake-556dd726e3e7e0ab21fcabb5108bfbde57de4242.tar.bz2
rpmdrake-556dd726e3e7e0ab21fcabb5108bfbde57de4242.tar.xz
rpmdrake-556dd726e3e7e0ab21fcabb5108bfbde57de4242.zip
(format_pkg_simplifiedinfo) small improvement
-rw-r--r--Rpmdrake/gui.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 867dc0d4..650ca4f7 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -71,7 +71,7 @@ sub format_pkg_simplifiedinfo {
my ($pkgs, $key, $urpm, $descriptions) = @_;
my ($name, $version) = split_fullname($key);
my $raw_medium = pkg2medium($pkgs->{$key}{pkg}, $urpm);
- my $medium = $raw_medium->{name} if $raw_medium;
+ my $medium = $raw_medium ? $raw_medium->{name} : undef;
my $update_descr = $pkgs->{$key}{pkg}->flag_upgrade && $descriptions->{$name}{pre} && $descriptions->{$name}{medium} eq $medium;
my $s = ugtk2::markup_to_TextView_format(join("\n", format_header($name . ' - ' . translate($pkgs->{$key}{summary})) .
# workaround gtk+ bug where GtkTextView wronly limit embedded widget size to bigger line's width (#25533):