Fix list validation some more

This commit is contained in:
Timothy Baldridge 2023-10-30 21:35:57 -06:00
parent 9154463b76
commit fc45191438

View File

@ -188,12 +188,6 @@ public class ValidateLists
} }
} }
var downloader = _dispatcher.Downloader(archive);
if (downloader is IProxyable proxyable)
{
_proxyableFiles.Add((proxyable.UnParse(archive.State), archive.Hash));
}
return new ValidatedArchive return new ValidatedArchive
{ {
Status = ArchiveStatus.InValid, Status = ArchiveStatus.InValid,
@ -201,6 +195,15 @@ public class ValidateLists
}; };
}).ToArray(); }).ToArray();
foreach (var archive in archives)
{
var downloader = _dispatcher.Downloader(archive.Original);
if (downloader is IProxyable proxyable)
{
_proxyableFiles.Add((proxyable.UnParse(archive.Original.State), archive.Original.Hash));
}
}
validatedList.Archives = archives; validatedList.Archives = archives;
validatedList.Status = archives.Any(a => a.Status == ArchiveStatus.InValid) validatedList.Status = archives.Any(a => a.Status == ArchiveStatus.InValid)
? ListStatus.Failed ? ListStatus.Failed