repo: Ensure we set the size for regfile inline
Need to clean up the internal APIs for this.
This commit is contained in:
parent
2cc11b7808
commit
9b4bffc454
|
|
@ -2806,6 +2806,7 @@ ostree_repo_write_regfile_inline (OstreeRepo *self,
|
||||||
{
|
{
|
||||||
g_autoptr(GInputStream) memin = g_memory_input_stream_new_from_data (buf, len, NULL);
|
g_autoptr(GInputStream) memin = g_memory_input_stream_new_from_data (buf, len, NULL);
|
||||||
g_autoptr(GFileInfo) finfo = _ostree_mode_uidgid_to_gfileinfo (mode, uid, gid);
|
g_autoptr(GFileInfo) finfo = _ostree_mode_uidgid_to_gfileinfo (mode, uid, gid);
|
||||||
|
g_file_info_set_size (finfo, len);
|
||||||
g_autofree guint8* csum = NULL;
|
g_autofree guint8* csum = NULL;
|
||||||
if (!write_content_object (self, expected_checksum,
|
if (!write_content_object (self, expected_checksum,
|
||||||
memin, finfo, xattrs, &csum,
|
memin, finfo, xattrs, &csum,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue