mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-25 22:34:18 +08:00
Fix misc issues with repo_binary
This commit is contained in:
parent
44e1d90b8e
commit
e57f7ef214
@ -507,6 +507,11 @@ fn parse_args(args: Vec<String>) -> anyhow::Result<(CliConfig, CliCommand, Vec<C
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if conf.general.repo_binary == Some(true) {
|
||||
recipe.recipe.source = None;
|
||||
recipe.recipe.build.set_as_remote();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -204,7 +204,7 @@ pub fn build(
|
||||
return Ok((stage_dir, auto_deps));
|
||||
}
|
||||
|
||||
let source_modified = modified_dir_ignore_git(source_dir)?;
|
||||
let source_modified = modified_dir_ignore_git(source_dir).unwrap_or(SystemTime::UNIX_EPOCH);
|
||||
let deps_modified = dep_pkgars
|
||||
.iter()
|
||||
.map(|(_dep, pkgar)| modified(pkgar))
|
||||
@ -220,7 +220,7 @@ pub fn build(
|
||||
remove_all(&sysroot_dir)?;
|
||||
}
|
||||
}
|
||||
if !sysroot_dir.is_dir() {
|
||||
if !sysroot_dir.is_dir() && recipe.build.kind != BuildKind::Remote {
|
||||
// Create sysroot.tmp
|
||||
let sysroot_dir_tmp = target_dir.join("sysroot.tmp");
|
||||
create_dir_clean(&sysroot_dir_tmp)?;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user