summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-24 15:58:18 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-25 10:23:37 +0100
commit132952c59c85ef15554dae088ffe934940cb3020 (patch)
tree481781f6833c9c672e3ba48c23157417428ce345 /scripts
parent1dc6c9f5dc2429df5941b4d804d6ba34dc7b922c (diff)
downloadpoky-132952c59c85ef15554dae088ffe934940cb3020.tar.gz
poky-132952c59c85ef15554dae088ffe934940cb3020.tar.bz2
poky-132952c59c85ef15554dae088ffe934940cb3020.zip
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. (From OE-Core rev: d1e71bf5b399372166eb40bb0d99c8fb52231600) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install-buildtools2
1 files changed, 1 insertions, 1 deletions
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<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"))