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

@ -187,13 +187,7 @@ public class ValidateLists
}
}
}
var downloader = _dispatcher.Downloader(archive);
if (downloader is IProxyable proxyable)
{
_proxyableFiles.Add((proxyable.UnParse(archive.State), archive.Hash));
}
return new ValidatedArchive
{
Status = ArchiveStatus.InValid,
@ -201,6 +195,15 @@ public class ValidateLists
};
}).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.Status = archives.Any(a => a.Status == ArchiveStatus.InValid)
? ListStatus.Failed