diff options
Diffstat (limited to 'bitbake/lib/bb/cache.py')
-rw-r--r-- | bitbake/lib/bb/cache.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index ef4d660e85..ab09b08b58 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py | |||
@@ -528,7 +528,20 @@ class Cache(object): | |||
528 | 528 | ||
529 | if hasattr(info_array[0], 'file_checksums'): | 529 | if hasattr(info_array[0], 'file_checksums'): |
530 | for _, fl in info_array[0].file_checksums.items(): | 530 | for _, fl in info_array[0].file_checksums.items(): |
531 | for f in fl.split(): | 531 | fl = fl.strip() |
532 | while fl: | ||
533 | # A .split() would be simpler but means spaces or colons in filenames would break | ||
534 | a = fl.find(":True") | ||
535 | b = fl.find(":False") | ||
536 | if ((a < 0) and b) or ((b > 0) and (b < a)): | ||
537 | f = fl[:b+6] | ||
538 | fl = fl[b+7:] | ||
539 | elif ((b < 0) and a) or ((a > 0) and (a < b)): | ||
540 | f = fl[:a+5] | ||
541 | fl = fl[a+6:] | ||
542 | else: | ||
543 | break | ||
544 | fl = fl.strip() | ||
532 | if "*" in f: | 545 | if "*" in f: |
533 | continue | 546 | continue |
534 | f, exist = f.split(":") | 547 | f, exist = f.split(":") |