File tree Expand file tree Collapse file tree 8 files changed +26
-9
lines changed
Expand file tree Collapse file tree 8 files changed +26
-9
lines changed Original file line number Diff line number Diff line change 22# :
33# : name = "a4x2-prepare"
44# : variety = "basic"
5- # : target = "helios-2 .0"
5+ # : target = "helios-3 .0"
66# : rust_toolchain = true
77# : output_rules = [
88# : "=/out/cargo-bay-ce.tgz",
Original file line number Diff line number Diff line change 22# :
33# : name = "build-and-test (helios)"
44# : variety = "basic"
5- # : target = "helios-2 .0"
5+ # : target = "helios-3 .0"
66# : rust_toolchain = true
77# : output_rules = [
88# : "%/work/*",
Original file line number Diff line number Diff line change 22# :
33# : name = "check-features (helios)"
44# : variety = "basic"
5- # : target = "helios-2 .0"
5+ # : target = "helios-3 .0"
66# : rust_toolchain = true
77# : output_rules = [
88# : "/out/*",
Original file line number Diff line number Diff line change 22# :
33# : name = "clippy (helios)"
44# : variety = "basic"
5- # : target = "helios-2 .0"
5+ # : target = "helios-3 .0"
66# : rust_toolchain = true
77# : output_rules = []
88
Original file line number Diff line number Diff line change 22# :
33# : name = "omicron-common (helios)"
44# : variety = "basic"
5- # : target = "helios-2 .0"
5+ # : target = "helios-3 .0"
66# : rust_toolchain = true
77# : output_rules = []
88
Original file line number Diff line number Diff line change 22# :
33# : name = "helios / package"
44# : variety = "basic"
5- # : target = "helios-2 .0"
5+ # : target = "helios-3 .0"
66# : rust_toolchain = true
77# : output_rules = [
88# : "=/work/package.tar.gz",
Original file line number Diff line number Diff line change 22# :
33# : name = "helios / build TUF repo"
44# : variety = "basic"
5- # : target = "helios-2 .0"
5+ # : target = "helios-3 .0"
66# : rust_toolchain = true
77# : output_rules = [
88# : "=/work/manifest.toml",
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ use fs_err::tokio as fs;
1010use fs_err:: tokio:: File ;
1111use serde:: Deserialize ;
1212use slog:: Logger ;
13+ use std:: path:: Path ;
1314use tokio:: io:: AsyncWriteExt ;
1415use tokio:: io:: BufWriter ;
1516
@@ -23,7 +24,7 @@ const MANIFEST_PATH: &str = "incorporation.p5m";
2324const REPO_PATH : & str = "incorporation" ;
2425pub const ARCHIVE_PATH : & str = "incorporation.p5p" ;
2526
26- pub const PUBLISHER : & str = "helios-dev " ;
27+ pub const PUBLISHER : & str = "helios" ;
2728
2829pub ( crate ) enum Action {
2930 Generate { version : String } ,
@@ -119,9 +120,25 @@ async fn generate_incorporation_manifest(
119120 fmri : String ,
120121 }
121122
123+ let stdout = Command :: new ( "pkg" )
124+ . args ( [
125+ "list" ,
126+ "-H" ,
127+ "-o" ,
128+ "branch" ,
129+ "-n" ,
130+ "-g" ,
131+ HELIOS_PKGREPO ,
132+ "release/name" ,
133+ ] )
134+ . ensure_stdout ( & logger)
135+ . await ?;
136+
137+ let branch = stdout. trim ( ) ;
138+
122139 let mut manifest = BufWriter :: new ( File :: create ( path) . await ?) ;
123140 let preamble = format ! (
124- r#"set name=pkg.fmri value=pkg://{PUBLISHER}/{INCORP_NAME}@{version},5.11
141+ r#"set name=pkg.fmri value=pkg://{PUBLISHER}/{INCORP_NAME}@{version}-{branch} ,5.11
125142set name=pkg.summary value="Incorporation to constrain software delivered in Omicron Release V{version} images"
126143set name=info.classification value="org.opensolaris.category.2008:Meta Packages/Incorporations"
127144set name=variant.opensolaris.zone value=global value=nonglobal
You can’t perform that action at this time.
0 commit comments