diff options
author | Colin Walters <walters@verbum.org> | 2017-09-01 15:01:18 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-09-01 21:34:33 +0000 |
commit | 4bd63dd91998288d51f32cbe6c773ba89f234575 (patch) | |
tree | 244ed174e79e71a374a4ac06e1405e49f3ad051f /src/ostree/ot-admin-builtin-upgrade.c | |
parent | 517dd9c9648f6d1508343429086ac5a471bea7ec (diff) | |
download | ostree-4bd63dd91998288d51f32cbe6c773ba89f234575.tar.gz |
bin/admin: Do sysroot loading during argument parsing
Followup from previous patch - we can now centralize the sysroot loading.
Besides the obvious cleanup value, this is also prep for dropping an
`ostree_sysroot_get_path()` user.
Closes: #1123
Approved by: jlebon
Diffstat (limited to 'src/ostree/ot-admin-builtin-upgrade.c')
-rw-r--r-- | src/ostree/ot-admin-builtin-upgrade.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/ostree/ot-admin-builtin-upgrade.c b/src/ostree/ot-admin-builtin-upgrade.c index 77be95d2..8944904b 100644 --- a/src/ostree/ot-admin-builtin-upgrade.c +++ b/src/ostree/ot-admin-builtin-upgrade.c @@ -78,9 +78,6 @@ ot_admin_builtin_upgrade (int argc, char **argv, GCancellable *cancellable, GErr return FALSE; } - if (!ostree_sysroot_load (sysroot, cancellable, error)) - return FALSE; - g_autoptr(OstreeSysrootUpgrader) upgrader = ostree_sysroot_upgrader_new_for_os (sysroot, opt_osname, cancellable, error); |