File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -328,20 +328,21 @@ async fn deploy(
328
328
image : & ImageState ,
329
329
origin : & glib:: KeyFile ,
330
330
opts : Option < ostree:: SysrootDeployTreeOpts < ' _ > > ,
331
- ) -> Result < ( ) > {
331
+ ) -> Result < Deployment > {
332
332
let stateroot = Some ( stateroot) ;
333
333
let opts = opts. unwrap_or_default ( ) ;
334
334
// Copy to move into thread
335
335
let cancellable = gio:: Cancellable :: NONE ;
336
- let _new_deployment = sysroot. stage_tree_with_options (
337
- stateroot,
338
- image. ostree_commit . as_str ( ) ,
339
- Some ( origin) ,
340
- merge_deployment,
341
- & opts,
342
- cancellable,
343
- ) ?;
344
- Ok ( ( ) )
336
+ return sysroot
337
+ . stage_tree_with_options (
338
+ stateroot,
339
+ image. ostree_commit . as_str ( ) ,
340
+ Some ( origin) ,
341
+ merge_deployment,
342
+ & opts,
343
+ cancellable,
344
+ )
345
+ . map_err ( Into :: into) ;
345
346
}
346
347
347
348
#[ context( "Generating origin" ) ]
You can’t perform that action at this time.
0 commit comments