summaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-08-05 14:01:47 +0000
committerLars Wirzenius <liw@liw.fi>2022-08-05 14:01:47 +0000
commitaacb704f8cc7e227b9a301a74d879957f4af766a (patch)
tree460752d8e864237774947a3515bcb35435b3dc2e /src/util.rs
parentb45262174d06b15b7a888e6bcad42f6685ba89a2 (diff)
parentd9f66f00a5898b4a3cf2ea8ada9a2d08f34c670e (diff)
downloadriki-aacb704f8cc7e227b9a301a74d879957f4af766a.tar.gz
Merge branch 'git-ts' into 'main'
add src/git.rs Closes #3 See merge request larswirzenius/riki!35
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.rs b/src/util.rs
index 1f69523..7909080 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -34,6 +34,8 @@ pub fn get_mtime(src: &Path) -> Result<SystemTime, SiteError> {
}
pub fn set_mtime(filename: &Path, mtime: SystemTime) -> Result<(), SiteError> {
+ trace!("set_mtime: filename={} mtime={:?}", filename.display(), mtime);
+
let mtime = timespec(mtime)?;
let times = [mtime, mtime];
let times: *const timespec = &times[0];