]> TLD Linux GIT Repositories - tld-builder.git/commitdiff
- cast stream size to float
authorMarcin Krol <hawk@tld-linux.org>
Sun, 2 May 2021 16:44:29 +0000 (18:44 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Sun, 2 May 2021 16:44:29 +0000 (18:44 +0200)
TLD_Builder/rpm_builder.py

index b266947e1f9b68031eb0fe8d66c3b462eeb4bd71..b7ca2cda6e5f846663992742416f7ea72cc64d31 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.headers['content-length']
+    bytes = float(f.headers['content-length'])
     f.close()
     o.close()
     t = time.time() - start