diff options
author | Roland Hieber <rhi@pengutronix.de> | 2022-05-08 13:33:12 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-08 14:20:43 +0100 |
commit | f564bf2bbd96f2297e639c87b6e427f31a25aa46 (patch) | |
tree | 0e46ff61cc7d502f9e6f642cc792529e4ee07057 /bitbake | |
parent | 5b9eb4be1270086f772367acb9e05a9a704cd87b (diff) | |
download | poky-f564bf2bbd96f2297e639c87b6e427f31a25aa46.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: a70a7376a8708bde07959deb5d5842d7f84ee5f8)
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/cache.py | 2 |
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) |