summaryrefslogtreecommitdiffstats
path: root/rpmbuild-remote.py
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-09-10 15:11:19 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-09-10 15:11:19 -0400
commitc01d80c5c99c824794f4f123f024d22238dfb009 (patch)
treeb8ca487e34e9ca153524e3ca13b86f9af8bce4f5 /rpmbuild-remote.py
parent20d5b269fa9d16971e5fcaf522d19d9854d1c6c3 (diff)
downloadrpmbuild-remote-c01d80c5c99c824794f4f123f024d22238dfb009.zip
rpmbuild-remote-c01d80c5c99c824794f4f123f024d22238dfb009.tar.gz
rpmbuild-remote-c01d80c5c99c824794f4f123f024d22238dfb009.tar.xz
Pass the session along
Diffstat (limited to 'rpmbuild-remote.py')
-rwxr-xr-xrpmbuild-remote.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmbuild-remote.py b/rpmbuild-remote.py
index 94f7aa0..6d42d7e 100755
--- a/rpmbuild-remote.py
+++ b/rpmbuild-remote.py
@@ -152,7 +152,7 @@ def get_mock_results(session, dest, sout, serr):
logs = [os.path.join(output_dir, x)
for x in ['build.log', 'root.log', 'state.log']]
get_files(session, logs, dest)
- get_files(os.path.join(dest, 'build.log'), dest)
+ get_files(session, log_regex(os.path.join(dest, 'build.log')), dest)
def get_rpmbuild_results(session, dest, sout, serr):
if not dest:
@@ -163,7 +163,7 @@ def get_rpmbuild_results(session, dest, sout, serr):
err = open(os.path.join(dest, 'rpmbuild.stderr'), 'w+')
err.write(serr.read())
err.close()
- get_files(os.path.join(dest, 'rpmbuild.stdout'), dest)
+ get_files(session, log_regex(os.path.join(dest, 'rpmbuild.stdout')), dest)
def execute_jobs(opts, system, jobs):
session = paramiko.SSHClient()