From e9491668640227a7ae7f6d0506d36af3a10cdd49 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Tue, 2 Jun 2020 13:28:10 -0400 Subject: 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. --- mk/get-win32-tarballs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mk/get-win32-tarballs.py') diff --git a/mk/get-win32-tarballs.py b/mk/get-win32-tarballs.py index 3c99682779..6686119204 100755 --- a/mk/get-win32-tarballs.py +++ b/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) -- cgit v1.2.1