Skip to content

Commit

Permalink
Fix list validation some more
Browse files Browse the repository at this point in the history
  • Loading branch information
halgari committed Oct 31, 2023
1 parent 9154463 commit fc45191
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Wabbajack.CLI/Verbs/ValidateLists.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,20 +187,23 @@ public async Task<int> Run(AbsolutePath reports, AbsolutePath otherArchives)
}
}
}

var downloader = _dispatcher.Downloader(archive);
if (downloader is IProxyable proxyable)
{
_proxyableFiles.Add((proxyable.UnParse(archive.State), archive.Hash));
}


return new ValidatedArchive
{
Status = ArchiveStatus.InValid,
Original = archive
};
}).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
Expand Down

0 comments on commit fc45191

Please sign in to comment.