Skip to content

Commit fcfc3af

Browse files
committed
small conda startswith improvement
1 parent ac194e6 commit fcfc3af

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)