mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 23:44:17 +08:00
Apply version meta
This commit is contained in:
parent
25141384b4
commit
132199cd54
@ -1139,7 +1139,7 @@ fn package_toml(
|
||||
}
|
||||
let stage_toml = toml::to_string(&Package {
|
||||
name: name.clone(),
|
||||
version: "TODO".into(),
|
||||
version: package_version(recipe),
|
||||
target: env::var("TARGET").map_err(|err| format!("failed to read TARGET: {:?}", err))?,
|
||||
depends,
|
||||
})
|
||||
@ -1150,6 +1150,14 @@ fn package_toml(
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
fn package_version(recipe: &Recipe) -> Option<String> {
|
||||
if recipe.build.kind == BuildKind::None {
|
||||
None
|
||||
} else {
|
||||
Some("TODO".into())
|
||||
}
|
||||
}
|
||||
|
||||
fn cook_meta(
|
||||
recipe_dir: &Path,
|
||||
name: &PackageName,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user