aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--URPM.xs4
1 files changed, 2 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index ecb97d2..d1c137e 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1710,7 +1710,7 @@ Pkg_compare(pkg, evr)
} else if (pkg->h)
_epoch = get_int(pkg->h, RPMTAG_EPOCH);
else croak("undefined package");
- if (!compare) {
+
char *epoch, *version, *release;
/* extract epoch and version from evr */
@@ -1745,7 +1745,7 @@ Pkg_compare(pkg, evr)
compare = rpmvercmp(_version, version);
}
}
- }
+
/* restore info string modified */
if (pkg->info) {
_release[-1] = '-';