summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cache.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-07-22 15:41:07 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-25 12:09:40 +0100
commit3e0eb8a317939621536e905642a207973b87c248 (patch)
tree3c5b0f79aef9158abaefd506b4bd999f9736b1f9 /bitbake/lib/bb/cache.py
parent4a7ddff1836b782cd2feae82e0bbc17156d7b862 (diff)
downloadpoky-3e0eb8a317939621536e905642a207973b87c248.tar.gz
bitbake/cache: allow class names with arguments to be specified
This ensures we understand e.g. "virtual:multilib:lib64:pn" for multilib. (Bitbake rev: 0b9dee799cfe2229ec62c257dda36bd6c15d34a9) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cache.py')
-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