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-status.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-status.c')
-rw-r--r-- | src/ostree/ot-admin-builtin-status.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/ostree/ot-admin-builtin-status.c b/src/ostree/ot-admin-builtin-status.c index 3dd7aec5..56107974 100644 --- a/src/ostree/ot-admin-builtin-status.c +++ b/src/ostree/ot-admin-builtin-status.c @@ -108,9 +108,6 @@ ot_admin_builtin_status (int argc, char **argv, GCancellable *cancellable, GErro &sysroot, cancellable, error)) goto out; - if (!ostree_sysroot_load (sysroot, cancellable, error)) - goto out; - if (!ostree_sysroot_get_repo (sysroot, &repo, cancellable, error)) goto out; |