Skip to content

Commit 8077918

Browse files
authored
fix(download): find exact major.minor.patch version not found in decide_checkout (#259)
2 parents 62bf707 + 8a4901f commit 8077918

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/fosslight_util/download.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,11 @@ def decide_checkout(checkout_to="", tag="", branch="", git_url=""):
300300
exact_patch = [x for x in same_maj_min if x[1] == base_patch]
301301
if exact_patch:
302302
return min(exact_patch, key=lambda x: (len(x[0]), x[0].lower()))[0]
303+
if _v.group(3):
304+
return ""
303305
return max(same_maj_min, key=lambda x: x[1])[0]
306+
elif _v.group(3):
307+
return ""
304308

305309
ends = [n for n in ref_set if n.endswith(base)]
306310
if ends:

0 commit comments

Comments
 (0)