Skip to content

Commit

Permalink
fix: accept non-blessed binaries by default
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic committed Nov 16, 2022
1 parent 9dd8797 commit a2f210e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylib/ic_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def compute_ic_executable_path(executable_name: str, git_revision: str):
return pathlib.Path.home() / "bin" / f"{executable_name}.{git_revision}"


def download_ic_executable(git_revision: str, executable_name: str, blessed: bool = True):
def download_ic_executable(git_revision: str, executable_name: str, blessed: bool = False):
"""Download a platform-specific executable for the given git revision and return the local path."""
local_path = compute_ic_executable_path(executable_name=executable_name, git_revision=git_revision)
if local_path.exists() and local_path.stat().st_size > 0 and os.access(local_path, os.X_OK):
Expand All @@ -383,7 +383,7 @@ def compute_local_canister_path(canister_name: str, git_revision: str):
return pathlib.Path.home() / "tmp" / "canisters" / f"{canister_name}.{git_revision}.wasm"


def download_ic_canister(git_revision: str, canister_name: str, blessed: bool = True):
def download_ic_canister(git_revision: str, canister_name: str, blessed: bool = False):
"""Download a platform-specific executable for the given git revision and return the local path."""
local_path = compute_local_canister_path(canister_name=canister_name, git_revision=git_revision)
if local_path.exists() and local_path.stat().st_size > 0:
Expand Down

0 comments on commit a2f210e

Please sign in to comment.