Fixing checksum function.

This commit is contained in:
emiliano.vavassori 2024-01-01 13:18:55 +01:00
parent 36da47b0b5
commit 2a617b1824
1 changed files with 2 additions and 7 deletions

View File

@ -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)