commit: 907f5a20e28ef9fed45595bdc68daaebd36d5281
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 17 07:03:14 2020 +0000
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Fri Apr 17 07:08:24 2020 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=907f5a20
catalyst: Remove guard rails on duplicate digests
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
catalyst/base/genbase.py | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/catalyst/base/genbase.py b/catalyst/base/genbase.py
index e75e6e3c..f55b113f 100644
--- a/catalyst/base/genbase.py
+++ b/catalyst/base/genbase.py
@@ -37,17 +37,13 @@ class GenBase():
hash_map = self.settings["hash_map"]
if os.path.exists(path):
with io.open(digests, "w", encoding='utf-8') as myf:
- keys = {}
- for i in self.settings["digests"].split():
- keys[i] = 1
- array = sorted(keys.keys())
for f in [path, path + '.CONTENTS']:
if os.path.exists(f):
- if "all" in array:
+ if "all" in self.settings["digests"].split():
for k in list(hash_map.hash_map):
digest = hash_map.generate_hash(f, hash_=k)
myf.write(digest)
else:
- for j in array:
+ for j in self.settings["digests"].split():
digest = hash_map.generate_hash(f, hash_=j)
myf.write(digest)