summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRoland Hieber <rhi@pengutronix.de>2022-05-10 08:05:42 -1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-12 13:41:42 +0100
commitfe1a4d124072b304770fc8d605257a2a7923ad2a (patch)
tree69b2bdae0195b19f5d071d2de19b96594f3b599e /bitbake
parentdc41a59eaa4bb87fbdc8f7fe3482d299d43889ed (diff)
downloadpoky-fe1a4d124072b304770fc8d605257a2a7923ad2a.tar.gz
bitbake: cache: correctly handle file names containing colons
File names containing colons cause split() to return a list with more than two elements, which will lead to a stack trace ending in: ValueError: too many values to unpack (expected 2) Split only once at the last colon, thereby making sure that only two elements are returned. (Bitbake rev: e14ed7dd866334ab40cd335d9c006e5d7b447abd) Signed-off-by: Roland Hieber <rhi@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit a70a7376a8708bde07959deb5d5842d7f84ee5f8) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index fcb15796cc..92e9a3ced7 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -619,7 +619,7 @@ class Cache(NoCache):
619 for f in flist: 619 for f in flist:
620 if not f: 620 if not f:
621 continue 621 continue
622 f, exist = f.split(":") 622 f, exist = f.rsplit(":", 1)
623 if (exist == "True" and not os.path.exists(f)) or (exist == "False" and os.path.exists(f)): 623 if (exist == "True" and not os.path.exists(f)) or (exist == "False" and os.path.exists(f)):
624 self.logger.debug2("%s's file checksum list file %s changed", 624 self.logger.debug2("%s's file checksum list file %s changed",
625 fn, f) 625 fn, f)