fetcher: Lazily create tmp directory

The tmp directory is lazily created for each fetcher instance, since
it may require superuser permissions and some instances only need
_ostree_fetcher_request_uri_to_membuf() which keeps everything in
memory buffers.
This commit is contained in:
Matthew Barnes authored and Colin Walters committed 2015-12-19 09:21:22 -05:00
1 parent 1810de2b51
commit 1f1bfbf711
3 files changed
+38 -34

No files matched your search

+1 -3
View File
@@ -55,9 +55,7 @@ typedef enum {
GType _ostree_fetcher_get_type (void) G_GNUC_CONST;
OstreeFetcher *_ostree_fetcher_new (int tmpdir_dfd,
OstreeFetcherConfigFlags flags,
GCancellable *cancellable,
GError **error);
OstreeFetcherConfigFlags flags);
int _ostree_fetcher_get_dfd (OstreeFetcher *fetcher);