From 2fb1e91ceeb25ee136cb10369fabac15096283d2 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 22 Jun 2012 16:02:47 +0000 Subject: (Pkg_compare) kill noop test test is useless since initial URPM import 10 years ago --- URPM.xs | 4 ++-- 1 file 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] = '-'; -- cgit v1.2.1