don't dump upgrade notices on stderr if not attached to gui

This commit is contained in:
Damien Elmes 2010-12-17 04:27:12 +09:00
parent 400ca9a8a2
commit ca07cb8f26

View file

@ -2922,7 +2922,7 @@ select id from facts where spaceUntil like :_ff_%d escape '\\'""" % c
def notify(self, msg):
"Send a notice to all listeners, or display on stdout."
if hookEmpty("notify"):
sys.stderr.write(msg + "\n")
pass
else:
runHook("notify", msg)