From: Wolf Vollprecht Date: Wed, 1 Jul 2020 09:15:24 +0000 (+0200) Subject: small conda startswith improvement X-Git-Tag: 0.7.15~13^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F392%2Fhead;p=thirdparty%2Flibsolv.git small conda startswith improvement --- diff --git a/src/conda.c b/src/conda.c index 7f2538a9..21ad6bfb 100644 --- a/src/conda.c +++ b/src/conda.c @@ -212,7 +212,7 @@ pool_evrcmp_conda_int(const char *evr1, const char *evr1e, const char *evr2, con r = solv_vercmp_conda(evr1, r1 ? r1 : s1, evr2, r2 ? r2 : s2, r2 ? 0 : startswith); if (r) return r; - if (!r1 && !r2) + if ((!r2 && startswith) || (!r1 && !r2)) return 0; if (!r1 && r2) return -1;