From: Marcin Krol Date: Sun, 2 May 2021 16:30:55 +0000 (+0200) Subject: - fix getting size of stream X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=86579a75a741c01cbbc8d78fdaf8932a2cf179b3;p=tld-builder.git - fix getting size of stream --- diff --git a/TLD_Builder/rpm_builder.py b/TLD_Builder/rpm_builder.py index c2ac363..b266947 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.tell() + bytes = f.headers['content-length'] f.close() o.close() t = time.time() - start