mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-01 09:08:42 +08:00
Remove build_only
This commit is contained in:
parent
771f036c0a
commit
7d79ecdad1
@ -37,13 +37,12 @@ fn cook(
|
|||||||
recipe: &Recipe,
|
recipe: &Recipe,
|
||||||
is_deps: bool,
|
is_deps: bool,
|
||||||
fetch_only: bool,
|
fetch_only: bool,
|
||||||
build_only: bool,
|
|
||||||
is_offline: bool,
|
is_offline: bool,
|
||||||
) -> Result<(), String> {
|
) -> Result<(), String> {
|
||||||
if recipe.build.kind == BuildKind::None {
|
if recipe.build.kind == BuildKind::None {
|
||||||
return cook_meta(recipe_dir, name, recipe, fetch_only);
|
return cook_meta(recipe_dir, name, recipe, fetch_only);
|
||||||
}
|
}
|
||||||
let source_dir = match is_offline || build_only {
|
let source_dir = match is_offline {
|
||||||
true => fetch_offline(recipe_dir, &recipe.source),
|
true => fetch_offline(recipe_dir, &recipe.source),
|
||||||
false => fetch(recipe_dir, &recipe.source),
|
false => fetch(recipe_dir, &recipe.source),
|
||||||
}
|
}
|
||||||
@ -151,7 +150,6 @@ fn main() {
|
|||||||
&recipe.recipe,
|
&recipe.recipe,
|
||||||
recipe.is_deps,
|
recipe.is_deps,
|
||||||
fetch_only,
|
fetch_only,
|
||||||
false,
|
|
||||||
is_offline,
|
is_offline,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user