From d2a92df1552c979a562ce6c7a69a9fe0da08e55c Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 23 May 2017 14:58:03 -0400 Subject: [PATCH] repo/commit: Dedup content writing API implementation Similar to metadata, for `write_content_trusted()` we can just call `_write_content()` with a `NULL` output checksum. Closes: #881 Approved by: jlebon --- src/libostree/ostree-repo-commit.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libostree/ostree-repo-commit.c b/src/libostree/ostree-repo-commit.c index c788f7e6..a6d5f430 100644 --- a/src/libostree/ostree-repo-commit.c +++ b/src/libostree/ostree-repo-commit.c @@ -1748,9 +1748,8 @@ ostree_repo_write_content_trusted (OstreeRepo *self, GCancellable *cancellable, GError **error) { - return write_object (self, OSTREE_OBJECT_TYPE_FILE, checksum, - object_input, length, NULL, - cancellable, error); + return ostree_repo_write_content (self, checksum, object_input, length, + NULL, cancellable, error); } /**