]> TLD Linux GIT Repositories - tld-builder.git/commitdiff
- mode wb not allowed in os.popen
authorMarcin Krol <hawk@tld-linux.org>
Sun, 2 May 2021 13:24:24 +0000 (15:24 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Sun, 2 May 2021 13:24:24 +0000 (15:24 +0200)
TLD_Builder/rpm_builder.py

index 666f7d6744134dfb2153c63a03a774c58149291a..d8fdb9cd22089925311a013b4a1050c0b4334ed6 100644 (file)
@@ -125,7 +125,7 @@ def fetch_src(r, b):
                     print("error.reason exception %s" % e)
                 raise
 
-    o = chroot.popen("cat > %s" % b.src_rpm, mode = "wb")
+    o = chroot.popen("cat > %s" % b.src_rpm, mode = "w")
 
     try:
         bytes = util.sendfile(f, o)