Commit 7b846827 authored by Vsevolod Stakhov's avatar Vsevolod Stakhov
Browse files

Try to set mtime directly only for http urls.

Mtime detection may be broken for other types of urls, therefore
just ensure that we handle an HTTP url.
parent ac4b9228
......@@ -309,7 +309,7 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest, time_t *t
if (st.mtime < *t) {
retcode = EPKG_UPTODATE;
goto cleanup;
} else
} else if (strncmp(u->scheme, "http", 4) == 0)
*t = st.mtime;
}
sz = st.size;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment