self.cb = progressCallback
parsed, cached, skipped, masked = 0, 0, 0, 0
self.cache = bb.data.getVar( "CACHE", self.configuration.data, 1 )
- self.pkgdata = data.pkgdata( not self.cache in [None, ''], self.cache )
+ self.pkgdata = data.pkgdata( not self.cache in [None, ''], self.cache, self.configuration.data )
if not self.cache in [None, '']:
if self.cb is not None:
"""
Databacked Dictionary implementation
"""
- def __init__(self, cache_dir):
+ def __init__(self, cache_dir, config):
self.cache_dir = cache_dir
self.files = []
self.dirty = {}
+ self.config = config
def has_key(self,key):
return key in self.files
def init_db_mtime(cache,cache_bbfile):
return _dict_p_type.mtime(cache,cache_bbfile)
-def pkgdata(use_cache, cache):
+def pkgdata(use_cache, cache, config = None):
"""
Return some sort of dictionary to lookup parsed dictionaires
"""
if use_cache:
- return DataDictCache(cache)
+ return DataDictCache(cache, config)
return DataDictFull()
def createCopy(source):