mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-21 02:50:37 +03:00
core: Return input stream for raw repositories too
This bug is more obvious when fsck is rebased on top of ostree_repo_load_file().
This commit is contained in:
parent
3134cb6b24
commit
ea4d2be39c
@ -3274,6 +3274,15 @@ ostree_repo_load_file (OstreeRepo *self,
|
||||
G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, cancellable, error);
|
||||
if (!ret_file_info)
|
||||
goto out;
|
||||
|
||||
/* Now, look for the content */
|
||||
if (g_file_info_get_file_type (ret_file_info) == G_FILE_TYPE_REGULAR
|
||||
&& out_input)
|
||||
{
|
||||
ret_input = (GInputStream*)g_file_read (content_loose_path, cancellable, error);
|
||||
if (!ret_input)
|
||||
goto out;
|
||||
}
|
||||
if (out_xattrs)
|
||||
{
|
||||
ret_xattrs = ostree_get_xattrs_for_file (content_loose_path, error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user