summaryrefslogtreecommitdiffstats
path: root/perl-install/install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-04-16 21:37:34 +0000
committerThierry Vignaud <tv@mageia.org>2012-04-16 21:37:34 +0000
commit8eb26103bf6f61570f137a1350ba000b3a6f86da (patch)
tree238cf075b032023c0ecd0c2774142d94a092ff39 /perl-install/install
parent30d0611018ffd2711bb89fbb7fab0c0501fcc415 (diff)
downloaddrakx-backup-do-not-use-8eb26103bf6f61570f137a1350ba000b3a6f86da.tar
drakx-backup-do-not-use-8eb26103bf6f61570f137a1350ba000b3a6f86da.tar.gz
drakx-backup-do-not-use-8eb26103bf6f61570f137a1350ba000b3a6f86da.tar.bz2
drakx-backup-do-not-use-8eb26103bf6f61570f137a1350ba000b3a6f86da.tar.xz
drakx-backup-do-not-use-8eb26103bf6f61570f137a1350ba000b3a6f86da.zip
(choosePackagesTree) display informations, even if we failed to retrieve the package header
the later is needed only for description. "No description" will be merged in from rpmdrake
Diffstat (limited to 'perl-install/install')
-rw-r--r--perl-install/install/steps_gtk.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/install/steps_gtk.pm b/perl-install/install/steps_gtk.pm
index e484416dc..6909ec7b3 100644
--- a/perl-install/install/steps_gtk.pm
+++ b/perl-install/install/steps_gtk.pm
@@ -407,12 +407,12 @@ sub choosePackagesTree {
my $imp = translate($install::pkgs::compssListDesc{$p->flag_base ? 5 : $p->rate});
my $tag = { 'foreground' => 'royalblue3' };
- $@ ? N("Bad package") :
+
[ [ N("Name: "), $tag ], [ $p->name . "\n" ],
[ N("Version: "), $tag ], [ $p->version . '-' . $p->release . "\n" ],
[ N("Size: "), $tag ], [ N("%d KB\n", $p->size / 1024) ],
if_($imp, [ N("Importance: "), $tag ], [ "$imp\n" ]),
- [ "\n" ], [ formatLines($p->description) ] ];
+ [ "\n" ], [ formatLines($p->description || N("No description")) ] ];
},
toggle_nodes => sub {
my $set_state = shift @_;