summaryrefslogtreecommitdiffstats
path: root/rpmbuild-remote.py
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-09-10 15:05:54 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-09-10 15:05:54 -0400
commit89f20162b4c2575951f8e0b38b8b46af346a4ca2 (patch)
treecd4d931ae6473e273a7b111b863ce1fecb4cf3a6 /rpmbuild-remote.py
parentf9129c3b936203cc82544fb09d94ccaa14db3d3c (diff)
downloadrpmbuild-remote-89f20162b4c2575951f8e0b38b8b46af346a4ca2.zip
rpmbuild-remote-89f20162b4c2575951f8e0b38b8b46af346a4ca2.tar.gz
rpmbuild-remote-89f20162b4c2575951f8e0b38b8b46af346a4ca2.tar.xz
Fix readall usage to read
Diffstat (limited to 'rpmbuild-remote.py')
-rwxr-xr-xrpmbuild-remote.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/rpmbuild-remote.py b/rpmbuild-remote.py
index 696a21f..b19ef3f 100755
--- a/rpmbuild-remote.py
+++ b/rpmbuild-remote.py
@@ -134,16 +134,16 @@ def get_files(session, files, dest):
def log_regex(build_output):
out = open(build_output, 'r')
regex = re.compile("Wrote: (.+)")
- files = regex.findall(out.readall())
+ files = regex.findall(out.read())
out.close()
def get_mock_results(session, dest, sout, serr):
os.mkdirs(dest)
out = open(os.path.join(dest, 'mock.stdout'), 'w+')
- out.write(sout.readall())
+ out.write(sout.read())
out.close()
err = open(os.path.join(dest, 'mock.stderr'), 'w+')
- err.write(serr.readall())
+ err.write(serr.read())
err.close()
output_dir = re.compile(r'INFO: Results and/or logs in: (.+)').group(1)
logs = [os.path.join(output_dir, x)
@@ -154,10 +154,10 @@ def get_mock_results(session, dest, sout, serr):
def get_rpmbuild_results(session, dest, sout, serr):
os.mkdirs(dest)
out = open(os.path.join(dest, 'rpmbuild.stdout', 'w+'))
- out.write(sout.readall())
+ out.write(sout.read())
out.close()
err = open(os.path.join(dest, 'rpmbuild.stderr', 'w+'))
- err.write(serr.readall())
+ err.write(serr.read())
err.close()
get_files(os.path.join(dest, 'rpmbuild.stdout'), dest)