mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 23:44:17 +08:00
Allow check build deps on make image
This commit is contained in:
parent
ae06273f81
commit
bbb8589b0c
@ -1417,7 +1417,7 @@ fn main() {
|
||||
};
|
||||
}
|
||||
|
||||
let recipes = match CookRecipe::get_build_deps_recursive(&recipe_names) {
|
||||
let recipes = match CookRecipe::get_build_deps_recursive(&recipe_names, !with_package_deps) {
|
||||
Ok(ok) => ok,
|
||||
Err(err) => {
|
||||
eprintln!(
|
||||
|
||||
@ -202,11 +202,16 @@ impl CookRecipe {
|
||||
Ok(recipes)
|
||||
}
|
||||
|
||||
pub fn get_build_deps_recursive(names: &[PackageName]) -> Result<Vec<Self>, PackageError> {
|
||||
pub fn get_build_deps_recursive(
|
||||
names: &[PackageName],
|
||||
mark_is_deps: bool,
|
||||
) -> Result<Vec<Self>, PackageError> {
|
||||
let mut packages = Self::new_recursive(names, WALK_DEPTH)?;
|
||||
|
||||
for package in packages.iter_mut() {
|
||||
package.is_deps = !names.contains(&package.name);
|
||||
if mark_is_deps {
|
||||
for package in packages.iter_mut() {
|
||||
package.is_deps = !names.contains(&package.name);
|
||||
}
|
||||
}
|
||||
|
||||
Ok(packages)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user