summaryrefslogtreecommitdiffstats
path: root/rpmbuild-remote.py
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-09-08 22:18:28 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-09-08 22:18:28 -0400
commitbb99c906c332f650a5a7b6db053045055131162b (patch)
treec51e192f0b938c762d7cdd085c7579812fa38476 /rpmbuild-remote.py
parent4cef6d78f82159ce78380a67e73ae17242f7fa07 (diff)
downloadrpmbuild-remote-bb99c906c332f650a5a7b6db053045055131162b.zip
rpmbuild-remote-bb99c906c332f650a5a7b6db053045055131162b.tar.gz
rpmbuild-remote-bb99c906c332f650a5a7b6db053045055131162b.tar.xz
Use the correct variable
Diffstat (limited to 'rpmbuild-remote.py')
-rw-r--r--rpmbuild-remote.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpmbuild-remote.py b/rpmbuild-remote.py
index 9631e83..73bfee2 100644
--- a/rpmbuild-remote.py
+++ b/rpmbuild-remote.py
@@ -127,10 +127,10 @@ def execute_jobs(opts, system, jobs):
% (opts.mock, file)
else:
dest = "rpmbuild/SPECS"
- send_files(session, [jobs[0]], dest)
+ send_files(session, [job[0]], dest)
dest = "rpmbuild/SOURCES"
- send_files(session, jobs[1:], dest)
- file = os.path.basename(jobs[0])
+ send_files(session, job[1:], dest)
+ file = os.path.basename(job[0])
LOG.info("Building %s from %d souces" % (file, len(job) - 1))
cmd = "rpmbuild -ba rpmbuild/SPECS/%s" % file)
files = session.exec_command(cmd)