Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Try to set mtime directly only for http urls.
Vsevolod Stakhov committed 13 years ago
commit 7b846827e74148e74af6079b383512b033a8b377
parent ac4b9228c35f17aee7871be46591ce727f453bda
1 file changed +1 -1
modified libpkg/fetch.c
@@ -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;