summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/cache.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index bcadc275ec..58d5847f15 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -371,8 +371,9 @@ class Cache(object):
371 fn = virtualfn 371 fn = virtualfn
372 cls = "" 372 cls = ""
373 if virtualfn.startswith('virtual:'): 373 if virtualfn.startswith('virtual:'):
374 cls = virtualfn.split(':', 2)[1] 374 elems = virtualfn.split(':')
375 fn = virtualfn.replace('virtual:' + cls + ':', '') 375 cls = ":".join(elems[1:-1])
376 fn = elems[-1]
376 return (fn, cls) 377 return (fn, cls)
377 378
378 @staticmethod 379 @staticmethod