Mercurial Hosting > luan
diff src/luan/modules/host/Hosting.luan @ 1083:e7fb974e0c26
add Io checksum and use it for push
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 21 Nov 2016 22:48:43 -0700 |
parents | 1a68fc55a80c |
children | bae2d0c2576c |
line wrap: on
line diff
--- a/src/luan/modules/host/Hosting.luan Tue Nov 15 19:19:19 2016 -0700 +++ b/src/luan/modules/host/Hosting.luan Mon Nov 21 22:48:43 2016 -0700 @@ -28,7 +28,7 @@ local function process(there_parent,there,here) if here.is_file() then - if there == nil or there.last_modified < here.last_modified() then + if there == nil or there.checksum ~= here.checksum() then print("copying "..here.to_string()) host.copy_file(domain,password,there_parent.path,here.name(),here.read_binary()) end