Skip to content

Commit

Permalink
[rust] Enhance logic to uncompress DEB files and set toolchain version (
Browse files Browse the repository at this point in the history
#13741)

* [rust] Enhance logic to uncompress DEB files and set toolchain version

* [rust] Updata checksum in lock file

* [rust] Remove toolchain version from WORKSPACE

* [rust] Update again checksum in lock file
  • Loading branch information
bonigarcia authored Mar 27, 2024
1 parent fbf75fd commit 1f058a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rust/src/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,10 @@ pub fn uncompress_deb(
opt_edge_str, target_str
));
create_parent_path_if_not_exists(target)?;
let output = run_shell_command_by_os(os, command)?;
if output.is_empty() {
run_shell_command_by_os(os, command)?;
let target_path = Path::new(target);
if target_path.parent().unwrap().read_dir()?.next().is_none() {
println!("IS EMPTY");
fs::rename(&opt_edge_str, &target_str)?;
}

Expand Down

0 comments on commit 1f058a8

Please sign in to comment.