lib/pull: Only look for cookie files for non-local remotes

Just noticed this while reading an strace.

Closes: https://github.com/ostreedev/ostree/issues/1139

Closes: #1145
Approved by: jlebon
This commit is contained in:
Colin Walters 2017-09-06 21:30:13 -04:00 committed by Atomic Bot
parent 11179e30bd
commit db6135f5b3
1 changed files with 12 additions and 11 deletions

View File

@ -2743,6 +2743,7 @@ _ostree_repo_remote_new_fetcher (OstreeRepo *self,
_ostree_fetcher_set_proxy (fetcher, http_proxy); _ostree_fetcher_set_proxy (fetcher, http_proxy);
} }
if (!_ostree_repo_remote_name_is_file (remote_name))
{ {
g_autofree char *cookie_file = g_strdup_printf ("%s.cookies.txt", remote_name); g_autofree char *cookie_file = g_strdup_printf ("%s.cookies.txt", remote_name);
/* TODO; port away from this; a bit hard since both libsoup and libcurl /* TODO; port away from this; a bit hard since both libsoup and libcurl