aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-02-18 19:39:10 +0200
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-05-10 12:27:13 +0300
commit8256eb9889288f3ad22f1988d88d10fe5c645b91 (patch)
tree28ddf76977c6097d6dab0b87a03a225c0e878467
parentf2d3f3a9b71c2de5c7dfb219dbe690705e595e1c (diff)
downloadopenembedded-core-contrib-marquiz/bitbake/checksum-refactor.tar.gz
openembedded-core-contrib-marquiz/bitbake/checksum-refactor.tar.bz2
openembedded-core-contrib-marquiz/bitbake/checksum-refactor.zip
bb/fetch2: drop checksum cachemarquiz/bitbake/checksum-refactor
It is not used for anything, anymore. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r--lib/bb/cooker.py2
-rw-r--r--lib/bb/fetch2/__init__.py18
2 files changed, 0 insertions, 20 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index b2187d7d5f..04ef8e0229 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -2040,7 +2040,6 @@ class CookerParser(object):
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)
@@ -2094,7 +2093,6 @@ class CookerParser(object):
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:
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index 7e246555d1..45240e55b9 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -39,7 +39,6 @@ import bb.process
import subprocess
__version__ = "2"
-_checksum_cache = bb.checksum.FileChecksumCache()
logger = logging.getLogger("BitBake.Fetcher")
@@ -510,18 +509,10 @@ def fetcher_init(d):
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
@@ -1132,15 +1123,6 @@ def get_checksum_file_list(d):
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):
"""