Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
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 ff94d10a6fd763718513be66aa54e8660859f232
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;