Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37409356
en ru br
Репозитории ALT
S:5.44.0-alt1
5.1: 0.4.77-alt1
www.altlinux.org/Changes

Группа :: Работа с файлами
Пакет: calibre

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: calibre-no-update.patch
Скачать


diff -uNr calibre.old/src/calibre/gui2/ui.py calibre/src/calibre/gui2/ui.py
--- calibre.old/src/calibre/gui2/ui.py	2011-12-30 17:12:37.909499254 +0100
+++ calibre/src/calibre/gui2/ui.py	2011-12-30 17:14:33.899450513 +0100
@@ -681,7 +681,8 @@
         if write_settings:
             self.write_settings()
         self.check_messages_timer.stop()
-        self.update_checker.terminate()
+        if hasattr(self, 'update_checker') and self.update_checker:
+            self.update_checker.terminate()
         self.listener.close()
         self.job_manager.server.close()
         self.job_manager.threaded_server.close()
diff -uNr calibre.old/src/calibre/gui2/update.py calibre/src/calibre/gui2/update.py
--- calibre.old/src/calibre/gui2/update.py	2011-12-30 17:12:37.910499245 +0100
+++ calibre/src/calibre/gui2/update.py	2011-12-30 17:14:11.307655638 +0100
@@ -122,11 +122,11 @@
 
     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,
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin