hooks/notification.py
changeset 3163 edfe43ceaa35
parent 3072 6fb42c53f6df
child 3376 f5c69485381f
--- a/hooks/notification.py	Wed Sep 02 16:42:07 2009 +0200
+++ b/hooks/notification.py	Thu Sep 10 08:13:22 2009 +0200
@@ -98,6 +98,9 @@
               'after_add_entity', 'before_update_entity')
 
     def __call__(self):
+        # XXX use proper selectors
+        if self._cw.is_super_session or self._cw.repo.config.repairing:
+            return # ignore changes triggered by hooks or maintainance shell
         dest = self._cw.vreg.config['supervising-addrs']
         if not dest: # no supervisors, don't do this for nothing...
             return