Skip to content

Commit 956cb2d

Browse files
authored
Merge pull request #392 from wolfv/fix_startswith
small conda startswith improvement
2 parents ac194e6 + fcfc3af commit 956cb2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/conda.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ pool_evrcmp_conda_int(const char *evr1, const char *evr1e, const char *evr2, con
212212
r = solv_vercmp_conda(evr1, r1 ? r1 : s1, evr2, r2 ? r2 : s2, r2 ? 0 : startswith);
213213
if (r)
214214
return r;
215-
if (!r1 && !r2)
215+
if ((!r2 && startswith) || (!r1 && !r2))
216216
return 0;
217217
if (!r1 && r2)
218218
return -1;

0 commit comments

Comments
 (0)