Skip to content

Commit

Permalink
Fix python.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Sep 18, 2023
1 parent 527b9ac commit 5fa95fb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/core/src/tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ impl Tool {

let install_dir = self.get_tool_dir();
let _install_lock = fs::lock_directory(&install_dir).await?;
let mut installed = false;

self.on_installing
.emit(InstallingEvent {
Expand All @@ -800,10 +801,15 @@ impl Tool {
error: result.error.unwrap_or_default(),
}
.into());

// If native install fails, attempt other installers
} else {
installed = result.installed;
}
}

// Install from a prebuilt archive
} else {
if !installed {
self.install_from_prebuilt(&install_dir).await?;
}

Expand Down

0 comments on commit 5fa95fb

Please sign in to comment.