Parser.cfg = self.cfgdata
bb.utils.set_process_name(multiprocessing.current_process().name)
multiprocessing.util.Finalize(None, bb.codeparser.parser_cache_save, exitpriority=1)
- multiprocessing.util.Finalize(None, bb.fetch.fetcher_parse_save, exitpriority=1)
self.feeder_quit = multiprocessing.Queue(maxsize=1)
self.parser_quit = multiprocessing.Queue(maxsize=self.num_processes)
sync.start()
multiprocessing.util.Finalize(None, sync.join, exitpriority=-100)
bb.codeparser.parser_cache_savemerge()
- bb.fetch.fetcher_parse_done()
if self.cooker.configuration.profile:
profiles = []
for i in self.process_names:
import subprocess
__version__ = "2"
-_checksum_cache = bb.checksum.FileChecksumCache()
logger = logging.getLogger("BitBake.Fetcher")
else:
raise FetchError("Invalid SRCREV cache policy of: %s" % srcrev_policy)
- _checksum_cache.init_cache(d, d.getVar("BB_HASH_CHECKSUM_CACHE_FILE", True))
-
for m in methods:
if hasattr(m, "init"):
m.init(d)
-def fetcher_parse_save():
- _checksum_cache.save_extras()
-
-def fetcher_parse_done():
- _checksum_cache.save_merge()
-
def fetcher_compare_revisions():
"""
Compare the revisions in the persistant cache with current values and
return " ".join(filelist)
-def get_file_checksums(filelist, pn):
- """Get a list of the checksums for a list of local files
-
- Returns the checksums for a list of local files, caching the results as
- it proceeds
-
- """
- return _checksum_cache.get_checksums(filelist, pn)
-
class FetchData(object):
"""