Fix misc issues with repo_binary

This commit is contained in:
Wildan M 2025-11-20 02:34:47 -08:00
parent 44e1d90b8e
commit e57f7ef214
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79
2 changed files with 7 additions and 2 deletions

View File

@ -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();
}
}
}
}

View File

@ -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)?;