mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-21 02:50:37 +03:00
repo: Allow loading files staged in the transaction
Currently we can load metadata from the stage dir, but not file data, which makes no sense. Closes: #269 Approved by: cgwalters
This commit is contained in:
parent
bd3ad8cc5c
commit
8f8ab56211
@ -3066,6 +3066,13 @@ ostree_repo_load_file (OstreeRepo *self,
|
||||
error))
|
||||
goto out;
|
||||
|
||||
if (fd < 0 && self->commit_stagedir_fd != -1)
|
||||
{
|
||||
if (!ot_openat_ignore_enoent (self->commit_stagedir_fd, loose_path_buf, &fd,
|
||||
error))
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (fd != -1)
|
||||
{
|
||||
tmp_stream = g_unix_input_stream_new (fd, TRUE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user