# XXX obsolete other builds
+ # Add watchers
+ build._add_watchers()
+
return build
async def create_from_source_package(self, filename, distro, commit=None, type="release",
# Remove from cache
self.watchers.remove(user)
+ def _add_watchers(self):
+ """
+ Called when a new build is created and automatically adds any watchers
+ """
+ # Add the owner of the build (if any)
+ if self.owner:
+ self.add_watcher(self.owner)
+
+ # XXX extract any watchers from the commit message (if any)
+
+ # XXX add any permanent watchers
+
@property
def message_recipients(self):
ret = []