From d1e71bf5b399372166eb40bb0d99c8fb52231600 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 24 Jun 2020 15:58:18 +0100 Subject: scripts/install-buildtools: Handle new format checksum files Autobuilder generated checksum files only have a single space between the sum and the filename, tweak it to account for this. Signed-off-by: Richard Purdie --- scripts/install-buildtools | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/install-buildtools b/scripts/install-buildtools index 5538ff7047..7118f48be9 100755 --- a/scripts/install-buildtools +++ b/scripts/install-buildtools @@ -241,7 +241,7 @@ def main(): if ret != 0: logger.error("Could not download file from %s" % check_url) return ret - regex = re.compile(r"^(?P[0-9a-f]+)\s\s(?P.*/)?(?P.*)$") + regex = re.compile(r"^(?P[0-9a-f]+)\s+(?P.*/)?(?P.*)$") with open(tmpbuildtools_checksum, 'rb') as f: original = f.read() m = re.search(regex, original.decode("utf-8")) -- cgit 1.2.3-korg