Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Prevent 'pkg update' will always think that the repo is up to date if no mtime header is sent by the http server
Baptiste Daroussin committed 12 years ago
commit e54c47843cb85dca8118772213db7f20d2bbd5f9
parent ff94d10
1 file changed +1 -1
modified libpkg/fetch.c
@@ -305,7 +305,7 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest, time_t *t
		}
	}
	if (strcmp(u->scheme, "ssh") != 0) {
-
		if (t != NULL) {
+
		if (t != NULL && st.mtime != 0) {
			if (st.mtime < *t) {
				retcode = EPKG_UPTODATE;
				goto cleanup;