]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/install-buildtools: Handle new format checksum files
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 24 Jun 2020 14:58:18 +0000 (15:58 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Jun 2020 09:23:33 +0000 (10:23 +0100)
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 <richard.purdie@linuxfoundation.org>
scripts/install-buildtools

index 5538ff70472a0a3692c223b8be3a66ad2948f1f1..7118f48be91b0b806c8375e00010c3de835cf6c6 100755 (executable)
@@ -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<checksum>[0-9a-f]+)\s\s(?P<path>.*/)?(?P<filename>.*)$")
+            regex = re.compile(r"^(?P<checksum>[0-9a-f]+)\s+(?P<path>.*/)?(?P<filename>.*)$")
             with open(tmpbuildtools_checksum, 'rb') as f:
                 original = f.read()
                 m = re.search(regex, original.decode("utf-8"))