diff options
author | Alexander Larsson <alexl@redhat.com> | 2015-12-11 19:30:20 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2015-12-14 08:39:11 +0100 |
commit | 96eed957205c5a318c2849100778d48aad748469 (patch) | |
tree | 75bebb23765fcf51bdd98c93831d576c3713b4ab /src/libostree/ostree-fetcher.h | |
parent | f771461b4a048d2fb9acde9d38f833438bc51a29 (diff) | |
download | ostree-96eed957205c5a318c2849100778d48aad748469.tar.gz |
repo: Allocate a tmpdir for each OstreeFetcher to isolate concurrent downloads
This way two pulls will not use the same tmpdir and accidentally
overwrite each other. However, consecutive OstreeFetchers will reuse
the tmpdirs, so that we can properly resume downloading large objects.
https://bugzilla.gnome.org/show_bug.cgi?id=757611
Diffstat (limited to 'src/libostree/ostree-fetcher.h')
-rw-r--r-- | src/libostree/ostree-fetcher.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libostree/ostree-fetcher.h b/src/libostree/ostree-fetcher.h index 577a4d62..f9c0e042 100644 --- a/src/libostree/ostree-fetcher.h +++ b/src/libostree/ostree-fetcher.h @@ -54,8 +54,10 @@ typedef enum { GType _ostree_fetcher_get_type (void) G_GNUC_CONST; -OstreeFetcher *_ostree_fetcher_new (int tmpdir_dfd, - OstreeFetcherConfigFlags flags); +OstreeFetcher *_ostree_fetcher_new (int tmpdir_dfd, + OstreeFetcherConfigFlags flags, + GCancellable *cancellable, + GError **error); int _ostree_fetcher_get_dfd (OstreeFetcher *fetcher); |