forked from Mirrors/flatpak-builder
cache: Don't fail to create cache if parent dir is not created
parent
87ad85116e
commit
496cbac3db
|
@ -213,6 +213,11 @@ builder_cache_open (BuilderCache *self,
|
|||
|
||||
if (!g_file_query_exists (self->cache_dir, NULL))
|
||||
{
|
||||
g_autoptr(GFile) parent = g_file_get_parent (self->cache_dir);
|
||||
|
||||
if (!gs_file_ensure_directory (parent, TRUE, NULL, error))
|
||||
return FALSE;
|
||||
|
||||
if (!ostree_repo_create (self->repo, OSTREE_REPO_MODE_BARE_USER, NULL, error))
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue