projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f78386
)
sysroot: Reload config after setting sysroot kind
author
Dan Nicholson
<nicholson@endlessm.com>
Fri, 8 Sep 2017 17:09:18 +0000
(12:09 -0500)
committer
Atomic Bot
<atomic-devel@projectatomic.io>
Mon, 11 Sep 2017 10:53:20 +0000
(10:53 +0000)
This allows any repo configuration defaults to be set based on whether
it's a system repo or not.
Closes: #1155
Approved by: cgwalters
src/libostree/ostree-sysroot.c
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-sysroot.c
b/src/libostree/ostree-sysroot.c
index e8e299fe894c22873dfc69718f84844a5c6c146a..b8c4b4c5765248fee16c6b1d8b51d83a6de17f80 100644
(file)
--- 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;
}