From 47da84ed726e94da2d9272bce09ec71746ca974f Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Sep 14 2016 18:20:28 +0000 Subject: preCommit too. why not? --- diff --git a/hub/kojixmlrpc.py b/hub/kojixmlrpc.py index 377defe..f3057a1 100644 --- a/hub/kojixmlrpc.py +++ b/hub/kojixmlrpc.py @@ -763,9 +763,11 @@ def application(environ, start_response): #rollback context.cnx.rollback() elif context.commit_pending: - context.cnx.commit() # Currently there is not much data we can provide to the - # postCommit callback. The handler can access context at least + # pre/postCommit callbacks. The handler can access context at + # least + koji.plugin.run_callbacks('preCommit') + context.cnx.commit() koji.plugin.run_callbacks('postCommit') memory_usage_at_end = get_memory_usage() if memory_usage_at_end - memory_usage_at_start > opts['MemoryWarnThreshold']: