From 66b364cf8e2f7eb9113f3cedead61151e70215be Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Fri, 19 Nov 2010 11:06:38 -0700 Subject: cache: make loadDataFull a classmethod (Bitbake rev: 16a9d689e61c35cfca94bbecd9772eab3c5072ba) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/cache.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'bitbake/lib/bb/cache.py') diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index 5adb8d4a5c..707d81c971 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py @@ -171,18 +171,19 @@ class Cache(object): return realfn return "virtual:" + cls + ":" + realfn - def loadDataFull(self, virtualfn, appends, cfgData): + @classmethod + def loadDataFull(cls, virtualfn, appends, cfgData): """ Return a complete set of data for fn. To do this, we need to parse the file. """ - (fn, cls) = self.virtualfn2realfn(virtualfn) + (fn, virtual) = cls.virtualfn2realfn(virtualfn) logger.debug(1, "Parsing %s (full)", fn) - bb_data = self.load_bbfile(fn, appends, cfgData) - return bb_data[cls] + bb_data = cls.load_bbfile(fn, appends, cfgData) + return bb_data[virtual] def loadData(self, fn, appends, cfgData, cacheData): """ -- cgit v1.2.3-54-g00ecf