pull: Use API to stage files with length
Not doing so at the moment triggers a bug in the staging path, and it's more efficient anyways.
This commit is contained in:
1 parent
c6df0b0ae0
commit
488ce33795
1 file changed
+3
-3
@@ -994,9 +994,9 @@ fetch_content (OtPullData *pull_data,
|
|||||||
cancellable, error))
|
cancellable, error))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
if (!ostree_repo_stage_object (pull_data->repo, OSTREE_OBJECT_TYPE_FILE, checksum,
|
if (!ostree_repo_stage_file_object (pull_data->repo, checksum,
|
||||||
file_object_input,
|
file_object_input, length,
|
||||||
cancellable, error))
|
cancellable, error))
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user