aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-08-24 16:14:17 +0000
committerThierry Vignaud <tv@mageia.org>2012-08-24 16:14:17 +0000
commit749da7f388db2f6f37e2b238f34aa4b39384cb4a (patch)
tree382f795d186eb4fa886784c85fa0f6016061de30 /Rpmdrake/gui.pm
parent44ba14a0d18d9802658a468b97963297cf154344 (diff)
downloadrpmdrake-749da7f388db2f6f37e2b238f34aa4b39384cb4a.tar
rpmdrake-749da7f388db2f6f37e2b238f34aa4b39384cb4a.tar.gz
rpmdrake-749da7f388db2f6f37e2b238f34aa4b39384cb4a.tar.bz2
rpmdrake-749da7f388db2f6f37e2b238f34aa4b39384cb4a.tar.xz
rpmdrake-749da7f388db2f6f37e2b238f34aa4b39384cb4a.zip
(version_release) factorize some code
also needed for next commit
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r--Rpmdrake/gui.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 19c7e58a..bed4a9a0 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -204,10 +204,9 @@ sub get_main_text {
sub get_details {
my ($key, $pkg, $upkg, $installed_version, $raw_medium) = @_;
- my (undef, $version, $release) = split_fullname($key);
my $a = ugtk2::markup_to_TextView_format(
$spacing . join("\n$spacing",
- format_field(N("Version: ")) . $version . '-' . $release,
+ format_field(N("Version: ")) . version_release($upkg),
($upkg->flag_installed ?
format_field(N("Currently installed version: ")) . $installed_version : ()
),