summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpmbuild-remote.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/rpmbuild-remote.py b/rpmbuild-remote.py
index d537979..db612ac 100644
--- a/rpmbuild-remote.py
+++ b/rpmbuild-remote.py
@@ -141,7 +141,10 @@ def execute_jobs(opts, system, jobs):
file = os.path.basename(job[0])
LOG.info("Building %s from %d souces" % (file, len(job) - 1))
cmd = "rpmbuild -ba rpmbuild/SPECS/%s" % file)
+ start = time.clock()
files = session.exec_command(cmd)
+ finish = time.clock()
+ LOG.info("Completed build %.03f seconds" % (finish - start))
# Write output files
# Fetch RPM files
session.close()