summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/cache.py')
-rw-r--r--bitbake/lib/bb/cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index 36270d0093..c85effd6f0 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -238,7 +238,7 @@ def virtualfn2realfn(virtualfn):
238 Convert a virtual file name to a real one + the associated subclass keyword 238 Convert a virtual file name to a real one + the associated subclass keyword
239 """ 239 """
240 mc = "" 240 mc = ""
241 if virtualfn.startswith('mc:'): 241 if virtualfn.startswith('mc:') and virtualfn.count(':') >= 2:
242 elems = virtualfn.split(':') 242 elems = virtualfn.split(':')
243 mc = elems[1] 243 mc = elems[1]
244 virtualfn = ":".join(elems[2:]) 244 virtualfn = ":".join(elems[2:])
@@ -268,7 +268,7 @@ def variant2virtual(realfn, variant):
268 """ 268 """
269 if variant == "": 269 if variant == "":
270 return realfn 270 return realfn
271 if variant.startswith("mc:"): 271 if variant.startswith("mc:") and variant.count(':') >= 2:
272 elems = variant.split(":") 272 elems = variant.split(":")
273 if elems[2]: 273 if elems[2]:
274 return "mc:" + elems[1] + ":virtual:" + ":".join(elems[2:]) + ":" + realfn 274 return "mc:" + elems[1] + ":virtual:" + ":".join(elems[2:]) + ":" + realfn