File calibre-no-update.diff of Package calibre

Index: calibre/src/calibre/gui2/ui.py
===================================================================
--- calibre.orig/src/calibre/gui2/ui.py	2012-06-08 07:17:56.000000000 +0200
+++ calibre/src/calibre/gui2/ui.py	2012-06-12 20:44:24.116576257 +0200
@@ -744,7 +744,8 @@ class Main(MainWindow, MainWindowMixin,
         if write_settings:
             self.write_settings()
         self.check_messages_timer.stop()
-        self.update_checker.terminate()
+        if self.update_checker:
+            self.update_checker.terminate()
         self.listener.close()
         self.job_manager.server.close()
         self.job_manager.threaded_server.close()
Index: calibre/src/calibre/gui2/update.py
===================================================================
--- calibre.orig/src/calibre/gui2/update.py	2012-06-08 07:17:56.000000000 +0200
+++ calibre/src/calibre/gui2/update.py	2012-06-12 20:44:24.116576257 +0200
@@ -122,11 +122,11 @@ class UpdateMixin(object):
 
     def __init__(self, opts):
         self.last_newest_calibre_version = NO_CALIBRE_UPDATE
-        if not opts.no_update_check:
-            self.update_checker = CheckForUpdates(self)
-            self.update_checker.update_found.connect(self.update_found,
-                    type=Qt.QueuedConnection)
-            self.update_checker.start()
+        #if not opts.no_update_check:
+        #    self.update_checker = CheckForUpdates(self)
+        #    self.update_checker.update_found.connect(self.update_found,
+        #            type=Qt.QueuedConnection)
+        #    self.update_checker.start()
 
     def recalc_update_label(self, number_of_plugin_updates):
         self.update_found('%s%s%d'%(self.last_newest_calibre_version, VSEP,