mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Download all files we may need in the future
This commit is contained in:
parent
43a648b194
commit
b9dc50c47c
@ -540,13 +540,7 @@ public class ValidateLists : IVerb
|
||||
if (archive.State is Http http && http.Url.Host.EndsWith("github.com"))
|
||||
return (ArchiveStatus.Valid, archive);
|
||||
|
||||
bool ShouldDownload()
|
||||
{
|
||||
var downloader = _dispatcher.Downloader(archive);
|
||||
return downloader is IUrlDownloader && _dispatcher.Matches(archive, mirrorAllowList);
|
||||
}
|
||||
|
||||
if (ShouldDownload() && !archiveManager.HaveArchive(archive.Hash) && archive.State is not Nexus or WabbajackCDN)
|
||||
if (!archiveManager.HaveArchive(archive.Hash) && archive.State is not Nexus or WabbajackCDN)
|
||||
{
|
||||
_logger.LogInformation("Downloading {name} {hash}", archive.Name, archive.Hash);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user