diff options
author | Matt Turner <mattst88@gentoo.org> | 2020-04-16 23:38:14 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2020-04-17 10:03:47 -0700 |
commit | 45edc6510ce9cbf9cbe9ab5d2b7b8cd9f65f84cb (patch) | |
tree | 9cb9b5e3832958ddb0db3cbb29143c0011fe40bf /catalyst/base | |
parent | catalyst: Remove 'contents' config option (diff) | |
download | catalyst-45edc6510ce9cbf9cbe9ab5d2b7b8cd9f65f84cb.tar.gz catalyst-45edc6510ce9cbf9cbe9ab5d2b7b8cd9f65f84cb.tar.bz2 catalyst-45edc6510ce9cbf9cbe9ab5d2b7b8cd9f65f84cb.zip |
catalyst: Remove the 'hash_function' config option
Switch to SHA1, which is plenty fast. The next commit switches from the
external shash/b2sum tools to Python's hashlib, and the removal of this
config option will simplify that since the crc32 hash is in a different
python module (zlib).
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'catalyst/base')
-rw-r--r-- | catalyst/base/stagebase.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index f673382f..5f3fa1d0 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -444,7 +444,7 @@ class StageBase(TargetBase, ClearBase, GenBase): self.settings["source_path_hash"] = \ self.settings["hash_map"].generate_hash( self.settings["source_path"], - hash_=self.settings["hash_function"]) + hash_="sha1") log.notice('Source path set to %s', self.settings['source_path']) def set_dest_path(self): @@ -471,7 +471,7 @@ class StageBase(TargetBase, ClearBase, GenBase): self.settings["snapshot_path_hash"] = \ self.settings["hash_map"].generate_hash( self.settings["snapshot_path"], - hash_=self.settings["hash_function"]) + hash_="sha1") def set_snapcache_path(self): self.settings["snapshot_cache_path"] = \ |