From 5ab738e805940ca3fe3f6c577fbed01ba4016ffe Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 16 Aug 2009 11:39:44 -0600 Subject: [PATCH] IGN:... --- src/calibre/gui2/update.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/update.py b/src/calibre/gui2/update.py index a73b04531e..f566109bf2 100644 --- a/src/calibre/gui2/update.py +++ b/src/calibre/gui2/update.py @@ -6,7 +6,7 @@ import traceback from PyQt4.QtCore import QThread, SIGNAL import mechanize -from calibre.constants import __version__ +from calibre.constants import __version__, iswindows, isosx from calibre import browser URL = 'http://status.calibre-ebook.com/latest' @@ -18,6 +18,8 @@ class CheckForUpdates(QThread): br = browser() req = mechanize.Request(URL) req.add_header('CALIBRE_VERSION', __version__) + req.add_header('CALIBRE_OS', + 'win' if iswindows else 'osx' if isosx else 'oth') version = br.open(req).read().strip() if version and version != __version__: self.emit(SIGNAL('update_found(PyQt_PyObject)'), version)