[Git][ghc/ghc][master] get-win32-tarballs: Fix detection of missing tarballs

Marge Bot gitlab at gitlab.haskell.org
Thu Jul 23 00:18:51 UTC 2020



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
e9491668 by Ben Gamari at 2020-07-22T20:18:46-04:00
get-win32-tarballs: Fix detection of missing tarballs

This fixes the error message given by configure when the user
attempts to configure without first download the win32 tarballs.

- - - - -


1 changed file:

- mk/get-win32-tarballs.py


Changes:

=====================================
mk/get-win32-tarballs.py
=====================================
@@ -5,6 +5,7 @@ from pathlib import Path
 import urllib.request
 import subprocess
 import argparse
+import sys
 from sys import stderr
 
 TARBALL_VERSION = '0.2'
@@ -39,7 +40,8 @@ def fetch_arch(arch: str):
 
 def verify(arch: str):
     if not Path(DEST / arch / "SHA256SUMS").is_file():
-        raise IOError("SHA256SUMS doesn't exist; have you fetched?")
+        print("SHA256SUMS doesn't exist; have you fetched?", file=stderr)
+        sys.exit(2)
 
     cmd = ['sha256sum', '--quiet', '--check', '--ignore-missing', 'SHA256SUMS']
     subprocess.check_call(cmd, cwd=DEST / arch)



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e9491668640227a7ae7f6d0506d36af3a10cdd49

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e9491668640227a7ae7f6d0506d36af3a10cdd49
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200722/05f9b5dc/attachment.html>


More information about the ghc-commits mailing list