diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-11-19 11:06:38 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:41 +0000 |
commit | 66b364cf8e2f7eb9113f3cedead61151e70215be (patch) | |
tree | a8ab77e80c7792a59f8a1ba7f0d83e0269eb319b /bitbake/lib/bb/cache.py | |
parent | 81a81a163cb066a55d65d573e6baab35db0151ca (diff) | |
download | openembedded-core-66b364cf8e2f7eb9113f3cedead61151e70215be.tar.gz openembedded-core-66b364cf8e2f7eb9113f3cedead61151e70215be.tar.bz2 openembedded-core-66b364cf8e2f7eb9113f3cedead61151e70215be.zip |
cache: make loadDataFull a classmethod
(Bitbake rev: 16a9d689e61c35cfca94bbecd9772eab3c5072ba)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/cache.py')
-rw-r--r-- | bitbake/lib/bb/cache.py | 9 |
1 files changed, 5 insertions, 4 deletions
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): """ |