aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs3
1 files changed, 2 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index df5cd0c..29d4078 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1917,8 +1917,9 @@ Pkg_compare(pkg, evr)
compare = _epoch - (*epoch ? atoi(epoch) : 0);
version[-1] = ':'; /* restore in memory modification */
} else {
- /* there is no epoch defined, so no check on epoch and assume equality */
+ /* there is no epoch defined, so assume epoch = 0 */
version = evr;
+ compare = _epoch;
}
if (!compare) {
if (!pkg->info)