query_data = (git_tag)
buildmonitor_db.do_query(query, query_data)
-def update_repa(sr_tag, status, status_reason):
- print "[%s] update_repa %s, %s, %s\n", (__file__, sr_tag, status, status_reason)
+def update_repa(sr_tag, profile, status, status_reason):
+ print "[%s] update_repa %s, %s, %s, %s\n", (__file__, sr_tag, profile, status, status_reason)
- query = "UPDATE sr_accept_log SET status=%s,status_reason=%s WHERE sr=%s ORDER BY id DESC LIMIT 1"
- query_data = (status, status_reason, sr_tag)
+ query = "UPDATE sr_accept_log SET status=%s,status_reason=%s WHERE sr=%s AND profile=%s ORDER BY id DESC LIMIT 1"
+ query_data = (status, status_reason, sr_tag, profile)
buildmonitor_db.do_query(query, query_data)
def update_build_log(content):
elif bm_stage == 'REPA':
print '[%s][REPA]\n' % (__file__)
sr_tag = content.get("sr_tag")
+ profile = content.get("profile")
status = content.get("status")
status_str = content.get("status_reason")
- update_repa(sr_tag, status, status_str)
+ update_repa(sr_tag, profile, status, status_str)
elif bm_stage == "UPDATE_BUILD_LOG":
print "[%s][UPDATE_BUILD_LOG]\n" % (__file__)
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
"""
-This code is called by repa webpage
+This code is called by repa webpage
"""
import os
for p in org_source_packages:
if not is_aggregate_package(build, prerelease_proj, p):
source_packages.append(p)
-
+
reqid = build.create_sr(prerelease_proj, source_packages,
target_prj, message=message)
bm_data = {"bm_stage": bm_stage,
"sr_tag": sr_tag,
+ "profile":obs_project,
"status": status_str,
"status_reason": error_string}
trigger_next("BUILD-MONITOR", bm_data)