mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-17 12:20:59 +02:00
catalyst: more blake2 testing
This commit is contained in:
parent
172b198a3c
commit
b7057fc072
1 changed files with 3 additions and 3 deletions
|
|
@ -1,12 +1,12 @@
|
|||
diff --git a/catalyst/hash_utils.py b/catalyst/hash_utils.py
|
||||
index 1134f50..51fbde8 100644
|
||||
index 1134f50..dc3a8d6 100644
|
||||
--- a/catalyst/hash_utils.py
|
||||
+++ b/catalyst/hash_utils.py
|
||||
@@ -11,6 +11,7 @@ from catalyst.support import CatalystError
|
||||
# fields = ["func", "cmd", "args", "id"]
|
||||
HASH_DEFINITIONS = {
|
||||
"adler32" :["calc_hash2", "shash", ["-a", "ADLER32"], "ADLER32"],
|
||||
+ "blake2" :["calc_hash2", "b2sum", [ ], "BLAKE2"],
|
||||
+ "blake2" :["calc_hash", "b2sum", [ ], "BLAKE2"],
|
||||
"crc32" :["calc_hash2", "shash", ["-a", "CRC32"], "CRC32"],
|
||||
"crc32b" :["calc_hash2", "shash", ["-a", "CRC32B"], "CRC32B"],
|
||||
"gost" :["calc_hash2", "shash", ["-a", "GOST"], "GOST"],
|
||||
|
|
@ -19,7 +19,7 @@ index 1134f50..51fbde8 100644
|
|||
- mylines = source.communicate()[0]
|
||||
- mylines=mylines[0].split()
|
||||
+ output = source.communicate()
|
||||
+ mylines = output[0].decode('ascii').split('\n')
|
||||
+ mylines = output[0].decode('ascii')
|
||||
+ log.debug('output = %s', mylines)
|
||||
result=mylines[0]
|
||||
log.info('%s (%s) = %s', _hash.id, file_, result)
|
||||
|
|
|
|||
Loading…
Reference in a new issue