aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-22 16:02:47 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-22 16:02:47 +0000
commit2fb1e91ceeb25ee136cb10369fabac15096283d2 (patch)
treeea0a760bf9835dbb24c97828d6a91eb25fef61ba
parent867dd47f9461df0caa2071d34edd202ccb7073ad (diff)
downloadperl-URPM-2fb1e91ceeb25ee136cb10369fabac15096283d2.tar
perl-URPM-2fb1e91ceeb25ee136cb10369fabac15096283d2.tar.gz
perl-URPM-2fb1e91ceeb25ee136cb10369fabac15096283d2.tar.bz2
perl-URPM-2fb1e91ceeb25ee136cb10369fabac15096283d2.tar.xz
perl-URPM-2fb1e91ceeb25ee136cb10369fabac15096283d2.zip
(Pkg_compare) kill noop test
test is useless since initial URPM import 10 years ago
-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] = '-';