From 9d6790c4409dee4d08fe6a47450125c406d0ba32 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 1 Dec 2011 23:11:24 +0000 Subject: cooker.py: Allow the -e option to work with virtual classes and -b Using bitbake -e -b virtual:xxxx:/path/to/the.bb would result in zero matches since the virtual:xxxx piece wasn't being processed. This adds in the necessary functionality to handle it correctly. [YOCTO #1793] (Bitbake rev: bd5a727c8447bcb747c1d2463b7de2ab6d21a7de) Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 5bbabfceb9..d1198d4496 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -295,7 +295,9 @@ class BBCooker: self.status = bb.cache.CacheData(self.caches_array) self.handleCollections( self.configuration.data.getVar("BBFILE_COLLECTIONS", 1) ) - fn = self.matchFile(buildfile) + fn, cls = bb.cache.Cache.virtualfn2realfn(buildfile) + fn = self.matchFile(fn) + fn = bb.cache.Cache.realfn2virtual(fn, cls) elif len(pkgs_to_build) == 1: self.updateCache() -- cgit v1.2.3-54-g00ecf