summaryrefslogtreecommitdiffstats
path: root/rpmbuild-remote.py
diff options
context:
space:
mode:
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 e40a5dd..7c3eb08 100755
--- a/rpmbuild-remote.py
+++ b/rpmbuild-remote.py
@@ -193,12 +193,12 @@ def execute_jobs(opts, system, jobs):
LOG.info("Building %s from %d souces" % (file, len(job) - 1))
cmd = "rpmbuild -ba rpmbuild/SPECS/%s" % file
fetch = get_rpmbuild_results
- files = session.exec_command(cmd)
+ (sin, sout, serr) = session.exec_command(cmd)
LOG.info("Downloading results...")
- files[0].close()
- fetch(session, os.path.join(opts.dest, file), files[1], files[2])
- files[1].close()
- files[2].close()
+ sin.close()
+ fetch(session, os.path.join(opts.dest, file), sout, serr)
+ sout.close()
+ serr.close()
session.close()
def main():