diff options
author | Colin Walters <walters@verbum.org> | 2014-03-23 11:36:09 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2014-03-23 11:36:09 -0400 |
commit | ffb9d3467164c1e8ec126d1bf265148e1b2374ab (patch) | |
tree | 7a18a6ec28b2490d0e258338ba3f92fefd676c98 /src/ostree/ot-admin-builtin-switch.c | |
parent | 2169c079b343576ce6f62f5c4288477492ea4bb8 (diff) | |
download | ostree-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-switch.c')
-rw-r--r-- | src/ostree/ot-admin-builtin-switch.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ostree/ot-admin-builtin-switch.c b/src/ostree/ot-admin-builtin-switch.c index 87f5893b..1edd7f5d 100644 --- a/src/ostree/ot-admin-builtin-switch.c +++ b/src/ostree/ot-admin-builtin-switch.c @@ -148,9 +148,11 @@ ot_admin_builtin_switch (int argc, char **argv, OstreeSysroot *sysroot, GCancell 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 (!ostree_repo_prepare_transaction (repo, NULL, cancellable, error)) |