build: read node files as binary files (#28729)
This commit is contained in:
parent
400d7c4bce
commit
8164322195
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ def create_checksum(algorithm, directory, filename, files):
|
||||||
lines = []
|
lines = []
|
||||||
for path in files:
|
for path in files:
|
||||||
h = hashlib.new(algorithm)
|
h = hashlib.new(algorithm)
|
||||||
with open(path, 'r') as f:
|
with open(path, 'rb') as f:
|
||||||
h.update(f.read())
|
h.update(f.read())
|
||||||
lines.append(h.hexdigest() + ' ' + os.path.relpath(path, directory))
|
lines.append(h.hexdigest() + ' ' + os.path.relpath(path, directory))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue