Skip to content

Commit

Permalink
fix: logic for returning false for daily version
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelgold committed Feb 20, 2024
1 parent 21a6eac commit a856ef2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/buildbpy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,9 +682,7 @@ def get_valid_tag(self, tag: str = None):
selected_tag = (
next((t.name for t in tags if t.name == tag), None)
if tag
else next((t.name for t in tags), None)
if tags
else None
else next((t.name for t in tags), None) if tags else None
)
return selected_tag

Expand Down Expand Up @@ -761,8 +759,9 @@ def main(
not selected_tag
and not is_valid_commit
and not daily
and not daily_version == ""
and daily_version == ""
):
print("No valid tag, commit or daily version found")
return False

blender_repo_dir = self.blender_repo_dir
Expand All @@ -783,6 +782,7 @@ def main(
self.checkout_strategy = DailyCheckoutStrategy(
blender_repo_dir, http_client, daily_version
)
print(f"Checking out daily version {daily_version}")
self.checkout_strategy.checkout()

# Get Blender version and setup build
Expand Down

0 comments on commit a856ef2

Please sign in to comment.