Make try-lockfile name be like the root message id

This commit is contained in:
Sergio Durigan Junior 2017-09-12 17:13:35 -04:00
parent 447c084f3b
commit cbe3b6a13e

View file

@ -142,8 +142,8 @@ import smtplib
import socket import socket
from email.mime.text import MIMEText from email.mime.text import MIMEText
def make_try_build_lockfile_name (rev): def make_try_build_lockfile_name (msgid):
return "/tmp/gdb-buildbot-%s-try.lock" % rev return "/tmp/gdb-buildbot-%s-try.lock" % msgid
def SendRootMessageGDBTesters (branch, change, rev, def SendRootMessageGDBTesters (branch, change, rev,
istrysched = False, istrysched = False,
@ -153,7 +153,7 @@ def SendRootMessageGDBTesters (branch, change, rev,
global GDB_MAIL_TO, GDB_MAIL_FROM global GDB_MAIL_TO, GDB_MAIL_FROM
if istrysched: if istrysched:
f = make_try_build_lockfile_name (rev) f = make_try_build_lockfile_name (try_msgid)
else: else:
f = "/tmp/gdb-buildbot-%s.lock" % rev f = "/tmp/gdb-buildbot-%s.lock" % rev