Skip to content

Commit 5497325

Browse files
gbazmergify[bot]
authored andcommitted
don't auto-download in hash validation phase
1 parent 869ecdc commit 5497325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cabal-install/src/Distribution/Client/FetchUtils.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ verifyFetchedTarball verbosity repoCtxt repo pkgid =
134134
in handleError $ do
135135
exists <- doesFileExist file
136136
if not exists
137-
then return False
137+
then return True -- if the file does not exist, it vacuously passes validation, since it will be downloaded as necessary with what we will then check is a valid hash.
138138
else case repo of
139139
-- a secure repo has hashes we can compare against to confirm this is the correct file.
140140
RepoSecure{} ->

0 commit comments

Comments
 (0)