summaryrefslogtreecommitdiff
path: root/src/ostree/ot-admin-builtin-upgrade.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-03-23 11:36:09 -0400
committerColin Walters <walters@verbum.org>2014-03-23 11:36:09 -0400
commitffb9d3467164c1e8ec126d1bf265148e1b2374ab (patch)
tree7a18a6ec28b2490d0e258338ba3f92fefd676c98 /src/ostree/ot-admin-builtin-upgrade.c
parent2169c079b343576ce6f62f5c4288477492ea4bb8 (diff)
downloadostree-ffb9d3467164c1e8ec126d1bf265148e1b2374ab.tar.gz
Move basic commit API into ostree_sysroot_simple_write_deployment()
The admin commands had this shared in tool common, but we want to encourage external programs to do this as well.
Diffstat (limited to 'src/ostree/ot-admin-builtin-upgrade.c')
-rw-r--r--src/ostree/ot-admin-builtin-upgrade.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ostree/ot-admin-builtin-upgrade.c b/src/ostree/ot-admin-builtin-upgrade.c
index 16a4073d..badaf2e2 100644
--- a/src/ostree/ot-admin-builtin-upgrade.c
+++ b/src/ostree/ot-admin-builtin-upgrade.c
@@ -176,9 +176,11 @@ ot_admin_builtin_upgrade (int argc, char **argv, OstreeSysroot *sysroot, GCancel
cancellable, error))
goto out;
- if (!ot_admin_complete_deploy_one (sysroot, opt_osname,
- new_deployment, merge_deployment, FALSE,
- cancellable, error))
+ if (!ostree_sysroot_simple_write_deployment (sysroot, opt_osname,
+ new_deployment,
+ merge_deployment,
+ 0,
+ cancellable, error))
goto out;
if (opt_reboot && g_file_equal (ostree_sysroot_get_path (sysroot), real_sysroot))