diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-06-24 15:58:18 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2020-06-29 05:17:44 -1000 |
commit | 877a082b5f3f5ccf8191a2438e7707b419174ea9 (patch) | |
tree | 95de1cb98ee71f92bffe68f6a5a2e2a28236c84d /scripts | |
parent | bef009c91e8acfc7c1ba3cfd3183f000a02e002b (diff) | |
download | openembedded-core-contrib-877a082b5f3f5ccf8191a2438e7707b419174ea9.tar.gz |
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 <richard.purdie@linuxfoundation.org>
(cherry picked from commit d1e71bf5b399372166eb40bb0d99c8fb52231600)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install-buildtools | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install-buildtools b/scripts/install-buildtools index 1a458a2cc7..fbf6a4bc38 100755 --- a/scripts/install-buildtools +++ b/scripts/install-buildtools @@ -239,7 +239,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")) |