Fixing checksum function.
This commit is contained in:
parent
36da47b0b5
commit
2a617b1824
|
@ -407,13 +407,8 @@ class Build():
|
|||
|
||||
retval.update(buf)
|
||||
|
||||
checksum = subprocess.run(f"md5sum {file}", shell=True,
|
||||
capture_output=True, text=True, encoding='utf-8', check=True,
|
||||
cwd=self.appnamedir)
|
||||
|
||||
if checksum.stdout:
|
||||
with open(f"{file}.md5", 'w', encoding='utf-8') as checkfile:
|
||||
checkfile.write(f"{retval.hexdigest()} {os.path.basename(file)}")
|
||||
with open(f"{file}.md5", 'w', encoding='utf-8') as checkfile:
|
||||
checkfile.write(f"{retval.hexdigest()} {os.path.basename(file)}")
|
||||
|
||||
def __download_archive__(self, archive):
|
||||
return self.__download__(self.url, archive)
|
||||
|
|
Loading…
Reference in New Issue