summaryrefslogtreecommitdiff
path: root/yocto-poky/bitbake/lib/bb/cache.py
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2015-09-22 16:09:05 +0300
committerPatrick Williams <patrick@stwcx.xyz>2015-09-22 16:09:05 +0300
commit3445365503e1e4d5601acf7c05609cc9673ec414 (patch)
tree7eb70c5bab200b0515a1b4d16873a75855df4c89 /yocto-poky/bitbake/lib/bb/cache.py
parentd10502479a70bd72ca4e09569b6ee738875e4823 (diff)
parentd7e963193b4e6541206a320316a158a65f1fee89 (diff)
downloadopenbmc-3445365503e1e4d5601acf7c05609cc9673ec414.tar.xz
Merge commit 'd7e963193b4e6541206a320316a158a65f1fee89' into HEAD
Diffstat (limited to 'yocto-poky/bitbake/lib/bb/cache.py')
-rw-r--r--yocto-poky/bitbake/lib/bb/cache.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/yocto-poky/bitbake/lib/bb/cache.py b/yocto-poky/bitbake/lib/bb/cache.py
index ef4d660e8..ab09b08b5 100644
--- a/yocto-poky/bitbake/lib/bb/cache.py
+++ b/yocto-poky/bitbake/lib/bb/cache.py
@@ -528,7 +528,20 @@ class Cache(object):
if hasattr(info_array[0], 'file_checksums'):
for _, fl in info_array[0].file_checksums.items():
- for f in fl.split():
+ fl = fl.strip()
+ while fl:
+ # A .split() would be simpler but means spaces or colons in filenames would break
+ a = fl.find(":True")
+ b = fl.find(":False")
+ if ((a < 0) and b) or ((b > 0) and (b < a)):
+ f = fl[:b+6]
+ fl = fl[b+7:]
+ elif ((b < 0) and a) or ((a > 0) and (a < b)):
+ f = fl[:a+5]
+ fl = fl[a+6:]
+ else:
+ break
+ fl = fl.strip()
if "*" in f:
continue
f, exist = f.split(":")