mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
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: 877a082b5f3f5ccf8191a2438e7707b419174ea9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit d1e71bf5b399372166eb40bb0d99c8fb52231600) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -239,7 +239,7 @@ def main():
|
|||||||
if ret != 0:
|
if ret != 0:
|
||||||
logger.error("Could not download file from %s" % check_url)
|
logger.error("Could not download file from %s" % check_url)
|
||||||
return ret
|
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:
|
with open(tmpbuildtools_checksum, 'rb') as f:
|
||||||
original = f.read()
|
original = f.read()
|
||||||
m = re.search(regex, original.decode("utf-8"))
|
m = re.search(regex, original.decode("utf-8"))
|
||||||
|
|||||||
Reference in New Issue
Block a user