From: Michael Schroeder Date: Mon, 15 Apr 2019 11:24:27 +0000 (+0200) Subject: pool_conda_matchspec: Use '*' as version when creating a simple name glob X-Git-Tag: 0.7.5~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81035b62e5087ea58f6d4a0876f7f67d2929d361;p=thirdparty%2Flibsolv.git pool_conda_matchspec: Use '*' as version when creating a simple name glob --- diff --git a/src/conda.c b/src/conda.c index 701523e0..5acdaded 100644 --- a/src/conda.c +++ b/src/conda.c @@ -562,7 +562,7 @@ pool_conda_matchspec(Pool *pool, const char *name) char *name2; char *p, *pp; char *build, *buildend, *version, *versionend; - Id nameid, evrid = 1; + Id nameid, evrid; int haveglob = 0; /* ignore channel and namespace for now */ @@ -592,6 +592,8 @@ pool_conda_matchspec(Pool *pool, const char *name) solv_free(name2); return nameid; /* return a simple dependency if no glob/regex */ } + evrid = pool_str2id(pool, "*", 1); + solv_free(name2); return pool_rel2id(pool, nameid, evrid, REL_CONDA, 1); } /* have version */