libglnx porting: Migrate to new tempfile code

In general this is even cleaner now, though it was better after I
extracted a helper function for the "write tempfile with contents"
bits that were shared between metadata and regular file codepaths.

Closes: #369
Approved by: jlebon
This commit is contained in:
Colin Walters authored and Atomic Bot committed 2016-07-29 19:02:41 +00:00
1 parent 1db0c8dcd6
commit 6d310db1e7
7 files changed
+138 -82

No files matched your search

+1 -1
View File
@@ -726,7 +726,7 @@ content_fetch_on_complete (GObject *object,
if (!have_object)
{
if (!_ostree_repo_commit_loose_final (pull_data->repo, checksum, OSTREE_OBJECT_TYPE_FILE,
_ostree_fetcher_get_dfd (fetcher), temp_path,
_ostree_fetcher_get_dfd (fetcher), -1, temp_path,
cancellable, error))
goto out;
}