]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
pool_conda_matchspec: Use '*' as version when creating a simple name glob
authorMichael Schroeder <mls@suse.de>
Mon, 15 Apr 2019 11:24:27 +0000 (13:24 +0200)
committerMichael Schroeder <mls@suse.de>
Mon, 15 Apr 2019 11:24:27 +0000 (13:24 +0200)
src/conda.c

index 701523e0e4c0a2f5e3235353bbee871998969677..5acdaded8c5103d07c66e44f8e89c9abe3685756 100644 (file)
@@ -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 */