From: Marcin Krol Date: Sun, 2 May 2021 16:44:29 +0000 (+0200) Subject: - cast stream size to float X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=e78629924c9bc4d409d99a98aa697c5eefa6e9ac;p=tld-builder.git - cast stream size to float --- diff --git a/TLD_Builder/rpm_builder.py b/TLD_Builder/rpm_builder.py index b266947..b7ca2cd 100644 --- a/TLD_Builder/rpm_builder.py +++ b/TLD_Builder/rpm_builder.py @@ -134,7 +134,7 @@ def fetch_src(r, b): b.log_line("error: unable to write to `%s': %s" % (b.src_rpm, e)) raise - bytes = f.headers['content-length'] + bytes = float(f.headers['content-length']) f.close() o.close() t = time.time() - start