Fix Validate

This commit is contained in:
Julian Ospald 2021-06-07 20:04:55 +02:00
parent d584e7b21b
commit 810870e3a5
Signed by: hasufell
GPG Key ID: 3786C5262ECB4A3F
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ validateTarballs (TarballFilter etool versionRegex) dls gt = do
-- download/verify all tarballs
let dlis = either (const []) (\tool -> nubOrd $ dls ^.. each %& indices (maybe (const True) (==) tool) %> each %& indices (matchTest versionRegex . T.unpack . prettyVer) % (viSourceDL % _Just `summing` viArch % each % each % each)) etool
let gdlis = nubOrd $ gt ^.. each
let allDls = dlis ++ gdlis
let allDls = either (const gdlis) (const dlis) etool
when (null allDls) $ $(logError) [i|no tarballs selected by filter|] *> addError
forM_ allDls downloadAll