]> git.ipfire.org Git - pbs.git/commitdiff
jobs: Drop message recipients property
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Oct 2022 15:42:06 +0000 (15:42 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Oct 2022 15:42:06 +0000 (15:42 +0000)
Jobs don't really send any emails any more

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/jobs.py

index 61cdc772466ff5bb6e3cd200e51d9eb42cd7aeb4..0304d396807d4d10aac1fbab33f2a7641b3dbdd6 100644 (file)
@@ -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)