[ostree] pull: Use API to stage files with length
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] pull: Use API to stage files with length
- Date: Thu, 10 May 2012 18:32:00 +0000 (UTC)
commit 488ce3379533bcadb8338aba831e429718942c6d
Author: Colin Walters <walters verbum org>
Date: Thu May 10 10:29:26 2012 -0400
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.
src/ostree/ostree-pull.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/ostree/ostree-pull.c b/src/ostree/ostree-pull.c
index 9613828..fedb656 100644
--- a/src/ostree/ostree-pull.c
+++ b/src/ostree/ostree-pull.c
@@ -994,9 +994,9 @@ fetch_content (OtPullData *pull_data,
cancellable, error))
goto out;
- if (!ostree_repo_stage_object (pull_data->repo, OSTREE_OBJECT_TYPE_FILE, checksum,
- file_object_input,
- cancellable, error))
+ if (!ostree_repo_stage_file_object (pull_data->repo, checksum,
+ file_object_input, length,
+ cancellable, error))
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]