From 86579a75a741c01cbbc8d78fdaf8932a2cf179b3 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 2 May 2021 18:30:55 +0200 Subject: [PATCH] - fix getting size of stream --- TLD_Builder/rpm_builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.46.0