diff options
author | Colin Walters <walters@verbum.org> | 2013-09-15 18:07:34 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-09-15 18:08:06 -0400 |
commit | 95f07d486adcb6bb12d8da0016066d8d8db205d6 (patch) | |
tree | daa82c941be51af075565664348f996e625fddde /src/ostree/ot-admin-builtin-upgrade.c | |
parent | 6f929ca5af114da00030bd83d8b100706d0eebef (diff) | |
download | ostree-95f07d486adcb6bb12d8da0016066d8d8db205d6.tar.gz |
libostree: Move a lot more sysroot API here
OstreeBootloader is temporarily public API.
Diffstat (limited to 'src/ostree/ot-admin-builtin-upgrade.c')
-rw-r--r-- | src/ostree/ot-admin-builtin-upgrade.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ostree/ot-admin-builtin-upgrade.c b/src/ostree/ot-admin-builtin-upgrade.c index 215f4032..063703d4 100644 --- a/src/ostree/ot-admin-builtin-upgrade.c +++ b/src/ostree/ot-admin-builtin-upgrade.c @@ -70,9 +70,9 @@ ot_admin_builtin_upgrade (int argc, char **argv, OstreeSysroot *sysroot, GCancel if (!g_option_context_parse (context, &argc, &argv, error)) goto out; - if (!ot_admin_list_deployments (ostree_sysroot_get_path (sysroot), ¤t_bootversion, - ¤t_deployments, - cancellable, error)) + if (!ostree_sysroot_list_deployments (sysroot, ¤t_bootversion, + ¤t_deployments, + cancellable, error)) { g_prefix_error (error, "While listing deployments: "); goto out; @@ -88,8 +88,8 @@ ot_admin_builtin_upgrade (int argc, char **argv, OstreeSysroot *sysroot, GCancel merge_deployment = ot_admin_get_merge_deployment (current_deployments, opt_osname, booted_deployment); - deployment_path = ot_admin_get_deployment_directory (ostree_sysroot_get_path (sysroot), merge_deployment); - deployment_origin_path = ot_admin_get_deployment_origin_path (deployment_path); + deployment_path = ostree_sysroot_get_deployment_directory (sysroot, merge_deployment); + deployment_origin_path = ostree_sysroot_get_deployment_origin_path (deployment_path); repo_path = g_file_resolve_relative_path (ostree_sysroot_get_path (sysroot), "ostree/repo"); repo = ostree_repo_new (repo_path); |