aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-12-04 11:37:42 +0000
committerThierry Vignaud <tv@mandriva.org>2006-12-04 11:37:42 +0000
commit9e1044e4be9ecc525673d75c308e59aba37f2073 (patch)
tree32b92679cd4a81b04580ef5acfe7c13e6ea1e32d
parent0be605681b4a30af8762d59c1fc8932aad917df0 (diff)
downloadrpmdrake-9e1044e4be9ecc525673d75c308e59aba37f2073.tar
rpmdrake-9e1044e4be9ecc525673d75c308e59aba37f2073.tar.gz
rpmdrake-9e1044e4be9ecc525673d75c308e59aba37f2073.tar.bz2
rpmdrake-9e1044e4be9ecc525673d75c308e59aba37f2073.tar.xz
rpmdrake-9e1044e4be9ecc525673d75c308e59aba37f2073.zip
(format_pkg_simplifiedinfo) only show description for real updates, not also
for packages with the same base name
-rwxr-xr-xrpmdrake5
1 files changed, 3 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index 15f4d702..948aacdc 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -672,9 +672,10 @@ sub new {
package main;
sub format_pkg_simplifiedinfo {
- my ($pkgs, $key, $_urpm, $descriptions) = @_;
+ my ($pkgs, $key, $urpm, $descriptions) = @_;
my ($name, $_version) = split_fullname($key);
- my $update_descr = $pkgs->{$key}{pkg}->flag_upgrade && $descriptions->{$name}{pre};
+ my $medium = pkg2medium($pkgs->{$key}{pkg}, $urpm)->{name};
+ 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 . ' - ' . $pkgs->{$key}{summary}) .
# workaround gtk+ bug where GtkTextView wronly limit embedded widget size to bigger line's width (#25533):
"\x{200b} \x{feff}" . ' ' x 120,