summaryrefslogtreecommitdiffstats
path: root/rpmbuild-remote.py
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-09-10 15:10:00 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-09-10 15:10:00 -0400
commit7427ce4e6ea6d1a76447de9e583ba8d61ada0da7 (patch)
treee8c12a156277425cd935b953f39d440a5a5a0424 /rpmbuild-remote.py
parent23545aa6803e70895715fc752c3ccde4f8a63a0f (diff)
downloadrpmbuild-remote-7427ce4e6ea6d1a76447de9e583ba8d61ada0da7.zip
rpmbuild-remote-7427ce4e6ea6d1a76447de9e583ba8d61ada0da7.tar.gz
rpmbuild-remote-7427ce4e6ea6d1a76447de9e583ba8d61ada0da7.tar.xz
Name the output files
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():