core: Clean up temporary file creation

Use new libgsystem API, don't expose the repo's tmpdir.
This commit is contained in:
Colin Walters committed 2013-08-06 23:58:29 +02:00
1 parent 9e480cd6a9
commit 71c4ea67f7
7 files changed
+12 -68

No files matched your search

+2 -1
View File
@@ -68,6 +68,7 @@
#include "config.h"
#include "ostree.h"
#include "ostree-repo-private.h"
#include "ostree-fetcher.h"
#include "otutil.h"
@@ -1225,7 +1226,7 @@ ostree_repo_pull (OstreeRepo *repo,
if (tls_permissive)
fetcher_flags |= OSTREE_FETCHER_FLAGS_TLS_PERMISSIVE;
pull_data->fetcher = ostree_fetcher_new (ostree_repo_get_tmpdir (pull_data->repo),
pull_data->fetcher = ostree_fetcher_new (pull_data->repo->tmp_dir,
fetcher_flags);
if (!pull_data->base_uri)