repo: Create uncompressed-object-cache dir dynamically
Having the `uncompressed-object-cache` directory in `archive` repos by default is clutter; the functionality should be considered deprecated. Now we only create the directory if we're doing a checkout with the cache enabled. Closes: #1446 Approved by: jlebon
This commit is contained in:
1 parent
2e95e06616
commit
88d27fb3f1
3 files changed
+33
-13
No files matched your search
@@ -3029,18 +3029,6 @@ ostree_repo_open (OstreeRepo *self,
|
||||
if (!ostree_repo_reload_config (self, cancellable, error))
|
||||
return FALSE;
|
||||
|
||||
/* TODO - delete this */
|
||||
if (self->mode == OSTREE_REPO_MODE_ARCHIVE && self->enable_uncompressed_cache)
|
||||
{
|
||||
if (!glnx_shutil_mkdir_p_at (self->repo_dir_fd, "uncompressed-objects-cache", 0755,
|
||||
cancellable, error))
|
||||
return FALSE;
|
||||
if (!glnx_opendirat (self->repo_dir_fd, "uncompressed-objects-cache", TRUE,
|
||||
&self->uncompressed_objects_dir_fd,
|
||||
error))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
self->inited = TRUE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user