Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
repo: set mtime on the downloaded file for file://
Baptiste Daroussin committed 1 year ago
commit e0c8bb5a505a0dc023bd57744ee8dc696d170740
parent 63c79b6
1 file changed +2 -0
modified libpkg/fetch_file.c
@@ -57,9 +57,11 @@ file_open(struct pkg_repo *repo, struct fetch_item *fi)
	if (st.st_mtime <= fi->mtime)
		return (EPKG_UPTODATE);

+
	pkg_dbg(PKG_DBG_FETCH, 1,  "mtime: local %ld, remote %ld", st.st_mtime, fi->mtime);
	repo->fh = fopen(u, "re");
	if (repo->fh == NULL)
		return (EPKG_FATAL);
+
	fi->mtime = st.st_mtime;
	return (EPKG_OK);
}