* [gentoo-commits] gentoo-x86 commit in app-text/calibre/files: calibre-1.34-no_updates_dialog.patch calibre-1.34-C-locale.patch
@ 2014-05-01 16:14 Ian Stakenvicius (axs)
0 siblings, 0 replies; only message in thread
From: Ian Stakenvicius (axs) @ 2014-05-01 16:14 UTC (permalink / raw
To: gentoo-commits
axs 14/05/01 16:14:31
Added: calibre-1.34-no_updates_dialog.patch
calibre-1.34-C-locale.patch
Log:
added conditional to not throw exception when locale is 'C', bug 508834; cleaned up no-dialog patch
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
Revision Changes Path
1.1 app-text/calibre/files/calibre-1.34-no_updates_dialog.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/files/calibre-1.34-no_updates_dialog.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/files/calibre-1.34-no_updates_dialog.patch?rev=1.1&content-type=text/plain
Index: calibre-1.34-no_updates_dialog.patch
===================================================================
--- a/src/calibre/gui2/main.py 2014-01-17 11:49:16.000000000 +0800
+++ b/src/calibre/gui2/main.py 2014-01-18 18:28:53.322911344 +0800
@@ -37,8 +37,9 @@
help=_('Start minimized to system tray.'))
parser.add_option('-v', '--verbose', default=0, action='count',
help=_('Ignored, do not use. Present only for legacy reasons'))
- parser.add_option('--no-update-check', default=False, action='store_true',
- help=_('Do not check for updates'))
+ parser.add_option('--update-check', dest='no_update_check', default=True,
+ action='store_false',
+ help=_('Check for updates'))
parser.add_option('--ignore-plugins', default=False, action='store_true',
help=_('Ignore custom plugins, useful if you installed a plugin'
' that is preventing calibre from starting'))
--- a/src/calibre/gui2/update.py 2014-04-24 22:02:21.000000000 -0400
+++ b/src/calibre/gui2/update.py 2014-05-01 12:02:27.631316967 -0400
@@ -139,6 +139,8 @@
self.update_checker.update_found.connect(self.update_found,
type=Qt.QueuedConnection)
self.update_checker.start()
+ else:
+ self.update_checker = None
def recalc_update_label(self, number_of_plugin_updates):
self.update_found('%s%s%d'%(self.last_newest_calibre_version, VSEP,
--- a/src/calibre/gui2/ui.py 2014-04-24 22:02:21.000000000 -0400
+++ b/src/calibre/gui2/ui.py 2014-05-01 11:53:58.371307671 -0400
@@ -858,7 +858,8 @@
if write_settings:
self.write_settings()
self.check_messages_timer.stop()
- self.update_checker.terminate()
+ if self.update_checker is not None:
+ self.update_checker.terminate()
self.listener.close()
self.job_manager.server.close()
self.job_manager.threaded_server.close()
1.1 app-text/calibre/files/calibre-1.34-C-locale.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/files/calibre-1.34-C-locale.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/files/calibre-1.34-C-locale.patch?rev=1.1&content-type=text/plain
Index: calibre-1.34-C-locale.patch
===================================================================
--- a/src/calibre/spell/dictionary.py 2014-05-01 11:38:04.051290252 -0400
+++ b/src/calibre/spell/dictionary.py 2014-05-01 11:37:55.061290088 -0400
@@ -52,7 +52,7 @@
raw = raw or ''
parts = raw.replace('_', '-').split('-')
lc = canonicalize_lang(parts[0])
- if lc is None:
+ if lc is None and raw != 'C':
raise ValueError('Invalid language code: %r' % raw)
cc = None
if len(parts) > 1:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-05-01 16:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-01 16:14 [gentoo-commits] gentoo-x86 commit in app-text/calibre/files: calibre-1.34-no_updates_dialog.patch calibre-1.34-C-locale.patch Ian Stakenvicius (axs)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox