upgrade: Actually deploy upgraded tree again

I need a brown paper bag for this one...
This commit is contained in:
Colin Walters 2013-05-16 15:37:49 -04:00
parent f9484e9bab
commit 0852362efa
1 changed files with 4 additions and 2 deletions

View File

@ -89,8 +89,10 @@ ot_admin_builtin_upgrade (int argc, char **argv, OtAdminBuiltinOpts *admin_opts,
gs_file_get_path_cached (ostree_dir), gs_file_get_path_cached (ostree_dir),
NULL); NULL);
if (!ot_admin_pull (ostree_dir, osname, cancellable, error)) if (!gs_subprocess_simple_run_sync (gs_file_get_path_cached (ostree_dir),
goto out; GS_SUBPROCESS_STREAM_DISPOSITION_INHERIT,
cancellable, error,
"ostree", "admin", ostree_dir_arg, "pull-deploy", osname, NULL))
if (!gs_subprocess_simple_run_sync (gs_file_get_path_cached (ostree_dir), if (!gs_subprocess_simple_run_sync (gs_file_get_path_cached (ostree_dir),
GS_SUBPROCESS_STREAM_DISPOSITION_INHERIT, GS_SUBPROCESS_STREAM_DISPOSITION_INHERIT,