File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ rust-version = "1.63.0"
11
11
[dependencies ]
12
12
anyhow = " 1.0"
13
13
camino = " 1.0.4"
14
- ostree-ext = " 0.10.1 "
14
+ ostree-ext = " 0.10.5 "
15
15
clap = { version = " 3.2" , features = [" derive" ] }
16
16
clap_mangen = { version = " 0.1" , optional = true }
17
17
cap-std-ext = " 1.0.1"
Original file line number Diff line number Diff line change @@ -131,13 +131,12 @@ pub(crate) async fn status(opts: super::cli::StatusOpts) -> Result<()> {
131
131
} else {
132
132
let state = ostree_container:: store:: query_image_commit ( repo, & commit) ?;
133
133
println ! ( " Digest: {}" , state. manifest_digest. as_str( ) ) ;
134
- let config = state. configuration . as_ref ( ) ;
135
- let cconfig = config. and_then ( |c| c. config ( ) . as_ref ( ) ) ;
136
- let labels = cconfig. and_then ( |c| c. labels ( ) . as_ref ( ) ) ;
137
- if let Some ( labels) = labels {
138
- if let Some ( version) = labels. get ( "version" ) {
139
- println ! ( " Version: {version}" ) ;
140
- }
134
+ let version = state
135
+ . configuration
136
+ . as_ref ( )
137
+ . and_then ( ostree_container:: version_for_config) ;
138
+ if let Some ( version) = version {
139
+ println ! ( " Version: {version}" ) ;
141
140
}
142
141
}
143
142
} else {
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ cd $(mktemp -d)
12
12
13
13
case " ${AUTOPKGTEST_REBOOT_MARK:- } " in
14
14
" " )
15
+ bootc status > status.txt
16
+ grep ' Version:' status.txt
15
17
bootc status --json > status.json
16
18
image=$( jq -r ' .[0].image.image' < status.json)
17
19
echo " booted into $image "
You can’t perform that action at this time.
0 commit comments