]> TLD Linux GIT Repositories - tld-builder.git/commitdiff
- fix getting size of stream
authorMarcin Krol <hawk@tld-linux.org>
Sun, 2 May 2021 16:30:55 +0000 (18:30 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Sun, 2 May 2021 16:30:55 +0000 (18:30 +0200)
TLD_Builder/rpm_builder.py

index c2ac3634da4217b3e0657b925af51a47eb1ef93d..b266947e1f9b68031eb0fe8d66c3b462eeb4bd71 100644 (file)
@@ -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