From 17356488a774aa69d699b36741595eed18e5ddf4 Mon Sep 17 00:00:00 2001 From: Tomuxs Date: Mon, 14 Jul 2025 17:52:17 +0200 Subject: [PATCH] Require size sync --- source/lunch/update.d | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/source/lunch/update.d b/source/lunch/update.d index 156a9db..a16972f 100644 --- a/source/lunch/update.d +++ b/source/lunch/update.d @@ -329,7 +329,6 @@ private immutable(Actions) actions() if ( !exclude(file) ) to_be_deleted[file] = true; - SysTime now = Clock.currTime(); foreach (this_rem; rem.byValue) { if ( exclude(this_rem.file) ) @@ -352,22 +351,17 @@ private immutable(Actions) actions() to_be_deleted.remove(this_loc.file); - if (this_loc.mtime != this_rem.mtime) + if (this_loc.mtime != this_rem.mtime || this_loc.size != this_rem.size) { - if (this_loc.hash != this_rem.hash) + if (this_loc.hash != this_rem.hash || this_loc.size != this_rem.size) { act ~= this_act; - continue; } else { touch(workdir(this_loc.file), this_rem.mtime); } } - else - { - workdir(this_loc.file).setTimes(now, now); - } } foreach (file; to_be_deleted.byKey)