Skip to content

Commit

Permalink
Update opscrypto.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bkerler authored Jun 8, 2021
1 parent 821e0ee commit 6887333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opscrypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ def main():
length = int(item.attrib["SizeInByteInSrc"])
sha256 = item.attrib["Sha256"]
copyfile(filename, path, wfilename, start, length)
csha256 = calc_digest(os.path.join(path,wfilename),slength)
csha256 = calc_digest(os.path.join(path,wfilename))
if sha256 != csha256 and not sparse:
print("Sha256 fail.")
else:
Expand Down

0 comments on commit 6887333

Please sign in to comment.