Fix error handling for HLS make

This commit is contained in:
Julian Ospald 2022-02-06 22:24:52 +01:00
parent 12d2acd7fd
commit b4e58478c3
Signed by: hasufell
GPG Key ID: 3786C5262ECB4A3F

View File

@ -616,14 +616,14 @@ installHLSBindist dlinfo ver isoFilepath forceInstall = do
lift $ logInfo $ "isolated installing HLS to " <> T.pack isoDir
if legacy
then liftE $ installHLSUnpackedLegacy workdir isoDir Nothing forceInstall
else liftE $ installHLSUnpacked workdir isoDir ver
else liftE $ runBuildAction tmpUnpack Nothing $ installHLSUnpacked workdir isoDir ver
Nothing -> do
if legacy
then liftE $ installHLSUnpackedLegacy workdir binDir (Just ver) forceInstall
else do
inst <- ghcupHLSDir ver
liftE $ installHLSUnpacked workdir inst ver
liftE $ runBuildAction tmpUnpack Nothing $ installHLSUnpacked workdir inst ver
liftE $ setHLS ver SetHLS_XYZ
liftE $ installHLSPostInst isoFilepath ver