diff options
author | Dan Nicholson <nicholson@endlessm.com> | 2017-09-08 12:09:18 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-09-11 10:53:20 +0000 |
commit | ccbbf77c7107e015b5f9ed5084504b6436f2353a (patch) | |
tree | 5df86443052bc442df754a7ad35b04fd64f18774 /src/libostree/ostree-sysroot.c | |
parent | 9f78386819efb45f849467e99877528bac8c3666 (diff) | |
download | ostree-ccbbf77c7107e015b5f9ed5084504b6436f2353a.tar.gz |
sysroot: Reload config after setting sysroot kind
This allows any repo configuration defaults to be set based on whether
it's a system repo or not.
Closes: #1155
Approved by: cgwalters
Diffstat (limited to 'src/libostree/ostree-sysroot.c')
-rw-r--r-- | src/libostree/ostree-sysroot.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libostree/ostree-sysroot.c b/src/libostree/ostree-sysroot.c index e8e299fe..b8c4b4c5 100644 --- a/src/libostree/ostree-sysroot.c +++ b/src/libostree/ostree-sysroot.c @@ -772,6 +772,13 @@ ensure_repo (OstreeSysroot *self, */ g_weak_ref_init (&self->repo->sysroot, self); self->repo->sysroot_kind = OSTREE_REPO_SYSROOT_KIND_VIA_SYSROOT; + + /* Reload the repo config in case any defaults depend on knowing if this is + * a system repo. + */ + if (!ostree_repo_reload_config (self->repo, NULL, error)) + return FALSE; + return TRUE; } |