From: Michael Tremer Date: Thu, 13 Oct 2022 15:42:06 +0000 (+0000) Subject: jobs: Drop message recipients property X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08d3c51ee4a59fdbf45b31be8a2d96ea26763fd7;p=pbs.git jobs: Drop message recipients property Jobs don't really send any emails any more Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/jobs.py b/src/buildservice/jobs.py index 61cdc772..0304d396 100644 --- a/src/buildservice/jobs.py +++ b/src/buildservice/jobs.py @@ -416,31 +416,6 @@ class Job(base.DataObject): else: return datetime.datetime.utcnow() - self.started_at - @property - def message_recipients(self): - l = [] - - # Add all people watching the build. - l += self.build.message_recipients - - # Add the package maintainer on release builds. - if self.build.type == "release": - maint = self.pkg.maintainer - - if isinstance(maint, users.User): - l.append("%s <%s>" % (maint.realname, maint.email)) - elif maint: - l.append(maint) - - # XXX add committer and commit author. - - # Add the owner of the scratch build on scratch builds. - elif self.build.type == "scratch" and self.build.user: - l.append("%s <%s>" % \ - (self.build.user.realname, self.build.user.email)) - - return set(l) - def save_buildroot(self, pkgs): # Cleanup old stuff first (for rebuilding packages) self.db.execute("DELETE FROM jobs_buildroots WHERE job_id = %s", self.id)