Add hash and date to update available notification. fix #1883

This commit is contained in:
Ruud
2013-06-29 22:20:35 +02:00
parent 8c77d0d775
commit b1942678b4
+3 -1
View File
@@ -85,7 +85,9 @@ class Updater(Plugin):
if self.updater.check():
if not self.available_notified and self.conf('notification') and not self.conf('automatic'):
fireEvent('updater.available', message = 'A new update is available', data = self.updater.info())
info = self.updater.info()
version_date = datetime.fromtimestamp(info['update_version']['date'])
fireEvent('updater.available', message = 'A new update with hash "%s" is available, this version is from %s' % (info['update_version']['hash'], version_date), data = info)
self.available_notified = True
return True