aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {