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
This commit is contained in:
parent
9f78386819
commit
ccbbf77c71
|
|
@ -772,6 +772,13 @@ ensure_repo (OstreeSysroot *self,
|
||||||
*/
|
*/
|
||||||
g_weak_ref_init (&self->repo->sysroot, self);
|
g_weak_ref_init (&self->repo->sysroot, self);
|
||||||
self->repo->sysroot_kind = OSTREE_REPO_SYSROOT_KIND_VIA_SYSROOT;
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue