X-Git-Url: https://git.tld-linux.org/?p=tld-builder.git;a=blobdiff_plain;f=TLD_Builder%2Frpm_builder.py;fp=TLD_Builder%2Frpm_builder.py;h=b266947e1f9b68031eb0fe8d66c3b462eeb4bd71;hp=c2ac3634da4217b3e0657b925af51a47eb1ef93d;hb=86579a75a741c01cbbc8d78fdaf8932a2cf179b3;hpb=a68953c88fba6e657febf9cb06273f44288f759c 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