This commit is contained in:
2025-11-27 01:11:55 +01:00
parent a66f19190e
commit 229e0c8efd

View File

@ -25,14 +25,14 @@ private struct RemoteFile
string source;
string hash;
ulong size;
size_t mtime;
long mtime;
}
private struct Remote
{
string source;
ulong size;
size_t mtime;
long mtime;
RemoteFile[] files;
}
@ -40,7 +40,7 @@ private struct LocalFile
{
string file;
ulong size;
size_t mtime;
long mtime;
string hash() inout @property
{
@ -64,7 +64,7 @@ private struct LocalFile
private struct Local
{
ulong size;
size_t mtime;
long mtime;
LocalFile[] files;
}
@ -76,10 +76,10 @@ private struct Action
download,
}
What what;
What what;
string file;
string url;
size_t mtime;
long mtime;
alias this = what;
}
@ -228,7 +228,7 @@ private string workdir(string path)
}
private void touch(string path, size_t mtime = Clock.currTime().toUnixTime)
private void touch(string path, long mtime = Clock.currTime().toUnixTime)
{
infof("Touching %s", path);
SysTime old_atime, old_mtime;
@ -287,7 +287,7 @@ private immutable(Local) local()
loc.files ~= LocalFile(
file: entry.name.relativePath(workdir).replace('\\', '/'),
size: entry.size.to!uint,
size: entry.size.to!ulong,
mtime: entry.timeLastModified.toUnixTime,
);