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 | poky-66b364cf8e2f7eb9113f3cedead61151e70215be.tar.gz |
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): | |||
171 | return realfn | 171 | return realfn |
172 | return "virtual:" + cls + ":" + realfn | 172 | return "virtual:" + cls + ":" + realfn |
173 | 173 | ||
174 | def loadDataFull(self, virtualfn, appends, cfgData): | 174 | @classmethod |
175 | def loadDataFull(cls, virtualfn, appends, cfgData): | ||
175 | """ | 176 | """ |
176 | Return a complete set of data for fn. | 177 | Return a complete set of data for fn. |
177 | To do this, we need to parse the file. | 178 | To do this, we need to parse the file. |
178 | """ | 179 | """ |
179 | 180 | ||
180 | (fn, cls) = self.virtualfn2realfn(virtualfn) | 181 | (fn, virtual) = cls.virtualfn2realfn(virtualfn) |
181 | 182 | ||
182 | logger.debug(1, "Parsing %s (full)", fn) | 183 | logger.debug(1, "Parsing %s (full)", fn) |
183 | 184 | ||
184 | bb_data = self.load_bbfile(fn, appends, cfgData) | 185 | bb_data = cls.load_bbfile(fn, appends, cfgData) |
185 | return bb_data[cls] | 186 | return bb_data[virtual] |
186 | 187 | ||
187 | def loadData(self, fn, appends, cfgData, cacheData): | 188 | def loadData(self, fn, appends, cfgData, cacheData): |
188 | """ | 189 | """ |