From 3e0eb8a317939621536e905642a207973b87c248 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Fri, 22 Jul 2011 15:41:07 +0100 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/cache.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/cache.py') 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): fn = virtualfn cls = "" if virtualfn.startswith('virtual:'): - cls = virtualfn.split(':', 2)[1] - fn = virtualfn.replace('virtual:' + cls + ':', '') + elems = virtualfn.split(':') + cls = ":".join(elems[1:-1]) + fn = elems[-1] return (fn, cls) @staticmethod -- cgit v1.2.3-54-g00ecf