Skip to content

Commit

Permalink
fix the incorrect unpacking logic
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed Aug 14, 2024
1 parent 81f6e33 commit ac25a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/src/core/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ impl Config {
let mut short_path = t!(original_path.strip_prefix(directory_prefix));
let is_builder_config = short_path.to_str() == Some(BUILDER_CONFIG_FILENAME);

if !short_path.starts_with(pattern) && (is_ci_rustc && !is_builder_config) {
if !short_path.starts_with(pattern) && !(is_ci_rustc && is_builder_config) {
continue;
}
short_path = short_path.strip_prefix(pattern).unwrap_or(short_path);
Expand Down

0 comments on commit ac25a81

Please sign in to comment.