Skip to content

Commit

Permalink
Fix update_core_lowerbound for more than x.y
Browse files Browse the repository at this point in the history
A requirement of pulpcore>=x.y.z was not properly recognized by the
script.
  • Loading branch information
mdellweg authored and ggainey committed Jul 19, 2024
1 parent bd7ee18 commit cd6f9f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update_core_lowerbound.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def main():
for spec in requirement.specifier:
if spec.operator == ">=":
min_version = parse(spec.version)
if min_version not in versions:
if parse(f"{min_version.major}.{min_version.minor}") not in versions:
# Lowerbound is not a supported branch, modify to next lowest
valid_lowerbounds = list(requirement.specifier.filter(versions))
if valid_lowerbounds:
Expand Down

0 comments on commit cd6f9f0

Please sign in to comment.