aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-09-20 21:04:02 +0000
committerThierry Vignaud <tv@mageia.org>2012-09-20 21:04:02 +0000
commitb83d5e6d041c4ba6c2649ec017ee77019db4ba77 (patch)
treec0bc25d07137b10d0a2e13ba53b951663ef39e8f
parentfbafe4b98d5bb23f94cf08f0202207d98ae564cf (diff)
downloadrpmdrake-b83d5e6d041c4ba6c2649ec017ee77019db4ba77.tar
rpmdrake-b83d5e6d041c4ba6c2649ec017ee77019db4ba77.tar.gz
rpmdrake-b83d5e6d041c4ba6c2649ec017ee77019db4ba77.tar.bz2
rpmdrake-b83d5e6d041c4ba6c2649ec017ee77019db4ba77.tar.xz
rpmdrake-b83d5e6d041c4ba6c2649ec017ee77019db4ba77.zip
(version_release) return epoch too (thus EVR)
rationale: fix highlighting changelog for packages who have epochs as we are comparing installed version with version from changelog also it makes sense to display EVR in details like we do in changelogs (consistency)
-rw-r--r--Rpmdrake/formatting.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/Rpmdrake/formatting.pm b/Rpmdrake/formatting.pm
index 7b4c0917..f5cc928d 100644
--- a/Rpmdrake/formatting.pm
+++ b/Rpmdrake/formatting.pm
@@ -93,8 +93,10 @@ sub my_fullname {
}
sub version_release {
- my (undef, $version, $release) = $_[0]->fullname;
- "$version-$release";
+ my ($pkg) = @_;
+ my (undef, $version, $release) = $pkg->fullname;
+ my $epoch = $pkg->epoch;
+ $epoch ? "$epoch-$version-$release" : "$version-$release";
}
sub urpm_name {