From c1771e00e5e55d590e7d66f8e85c373d861d219b Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Fri, 14 Nov 2014 20:47:26 -0200 Subject: calibre-2.10.0-1.parabola1: updating version --- libre/calibre/libre.patch | 94 +++++++++++++++++++++-------------------------- 1 file changed, 41 insertions(+), 53 deletions(-) (limited to 'libre/calibre/libre.patch') diff --git a/libre/calibre/libre.patch b/libre/calibre/libre.patch index 1c84d029a..45a717a4e 100644 --- a/libre/calibre/libre.patch +++ b/libre/calibre/libre.patch @@ -197,10 +197,10 @@ diff -Nur calibre-1.204.1.orig/src/calibre/customize/builtins.py calibre-1.204.1 class RBMetadataReader(MetadataReaderPlugin): name = 'Read RB metadata' -diff -Nur calibre-1.204.1.orig/src/calibre/customize/ui.py calibre-1.204.1/src/calibre/customize/ui.py ---- calibre-1.204.1.orig/src/calibre/customize/ui.py 1989-12-31 22:00:00.000000000 -0200 -+++ calibre-1.204.1/src/calibre/customize/ui.py 2014-08-03 19:37:20.290255565 -0300 -@@ -440,7 +440,7 @@ +diff -Nur calibre-2.10.0.orig/src/calibre/customize/ui.py calibre-2.10.0/src/calibre/customize/ui.py +--- calibre-2.10.0.orig/src/calibre/customize/ui.py 2014-11-14 01:22:49.000000000 -0200 ++++ calibre-2.10.0/src/calibre/customize/ui.py 2014-11-14 20:25:07.477764064 -0200 +@@ -447,7 +447,7 @@ if not is_disabled(plugin): for format in plugin.file_types: formats.add(format) @@ -356,22 +356,22 @@ diff -Nur calibre-1.204.1.orig/src/calibre/ebooks/metadata/archive.py calibre-1. if comment: import json -diff -Nur calibre-1.204.1.orig/src/calibre/ebooks/oeb/iterator/book.py calibre-1.204.1/src/calibre/ebooks/oeb/iterator/book.py ---- calibre-1.204.1.orig/src/calibre/ebooks/oeb/iterator/book.py 1989-12-31 22:00:00.000000000 -0200 -+++ calibre-1.204.1/src/calibre/ebooks/oeb/iterator/book.py 2014-08-03 19:37:20.290255565 -0300 -@@ -126,7 +126,7 @@ +diff -Nur calibre-2.10.0.orig/src/calibre/ebooks/oeb/iterator/book.py calibre-2.10.0/src/calibre/ebooks/oeb/iterator/book.py +--- calibre-2.10.0.orig/src/calibre/ebooks/oeb/iterator/book.py 2014-11-14 01:22:49.000000000 -0200 ++++ calibre-2.10.0/src/calibre/ebooks/oeb/iterator/book.py 2014-11-14 20:25:07.481097421 -0200 +@@ -127,7 +127,7 @@ self.spine = [] - Spiny = partial(SpineItem, read_anchor_map=read_anchor_map, + Spiny = partial(SpineItem, read_anchor_map=read_anchor_map, read_links=read_links, run_char_count=run_char_count, from_epub=self.book_format == 'EPUB') - is_comic = plumber.input_fmt.lower() in {'cbc', 'cbz', 'cbr', 'cb7'} + is_comic = plumber.input_fmt.lower() in {'cbc', 'cbz', 'cb7'} for i in ordered: spath = i.path mt = None -diff -Nur calibre-2.7.0.orig/src/calibre/gui2/__init__.py calibre-2.7.0/src/calibre/gui2/__init__.py ---- calibre-2.7.0.orig/src/calibre/gui2/__init__.py 1989-12-31 22:00:00.000000000 -0200 -+++ calibre-2.7.0/src/calibre/gui2/__init__.py 2014-10-24 15:03:21.457620008 -0200 -@@ -499,7 +499,6 @@ +diff -Nur calibre-2.10.0.orig/src/calibre/gui2/__init__.py calibre-2.10.0/src/calibre/gui2/__init__.py +--- calibre-2.10.0.orig/src/calibre/gui2/__init__.py 2014-11-14 01:22:49.000000000 -0200 ++++ calibre-2.10.0/src/calibre/gui2/__init__.py 2014-11-14 20:25:07.481097421 -0200 +@@ -505,7 +505,6 @@ 'png' : 'png', 'bmp' : 'bmp', 'cbz' : 'cbz', @@ -379,7 +379,7 @@ diff -Nur calibre-2.7.0.orig/src/calibre/gui2/__init__.py calibre-2.7.0/src/cali 'svg' : 'svg', 'html' : 'html', 'htmlz' : 'html', -@@ -511,7 +510,6 @@ +@@ -517,7 +516,6 @@ 'lrx' : 'lrx', 'pdf' : 'pdf', 'pdr' : 'zero', @@ -387,10 +387,10 @@ diff -Nur calibre-2.7.0.orig/src/calibre/gui2/__init__.py calibre-2.7.0/src/cali 'zip' : 'zip', 'txt' : 'txt', 'text' : 'txt', -diff -Nur calibre-1.204.1.orig/src/calibre/gui2/actions/add.py calibre-1.204.1/src/calibre/gui2/actions/add.py ---- calibre-1.204.1.orig/src/calibre/gui2/actions/add.py 1989-12-31 22:00:00.000000000 -0200 -+++ calibre-1.204.1/src/calibre/gui2/actions/add.py 2014-08-03 19:37:20.293588940 -0300 -@@ -39,8 +39,8 @@ +diff -Nur calibre-2.10.0.orig/src/calibre/gui2/actions/add.py calibre-2.10.0/src/calibre/gui2/actions/add.py +--- calibre-2.10.0.orig/src/calibre/gui2/actions/add.py 2014-11-14 01:22:49.000000000 -0200 ++++ calibre-2.10.0/src/calibre/gui2/actions/add.py 2014-11-14 20:33:11.307849536 -0200 +@@ -38,8 +38,8 @@ (_('Text books'), ['txt', 'text', 'rtf']), (_('PDF Books'), ['pdf', 'azw4']), (_('SNB Books'), ['snb']), @@ -401,7 +401,7 @@ diff -Nur calibre-1.204.1.orig/src/calibre/gui2/actions/add.py calibre-1.204.1/s (_('Wordprocessor files'), ['odt', 'doc', 'docx']), ] -@@ -67,7 +67,7 @@ +@@ -66,7 +66,7 @@ 'sub directories (Multiple books per directory, assumes every ' 'ebook file is a different book)')).triggered.connect( self.add_recursive_multiple) @@ -414,36 +414,24 @@ diff -Nur calibre-1.204.1.orig/src/calibre/gui2/actions/add.py calibre-1.204.1/s def add_archive(self, single): paths = choose_files( self.gui, 'recursive-archive-add', _('Choose archive file'), -- filters=[(_('Archives'), ('zip', 'rar'))], all_files=False, select_only_single_file=True) -+ filters=[(_('Archives'), ('zip'))], all_files=False, select_only_single_file=True) +- filters=[(_('Archives'), ('zip', 'rar'))], all_files=False, select_only_single_file=False) ++ filters=[(_('Archives'), ('zip'))], all_files=False, select_only_single_file=False) if paths: - self.do_add_recursive(paths[0], single) - -diff -Nur calibre-2.5.0.orig/src/calibre/gui2/add.py calibre-2.5.0/src/calibre/gui2/add.py ---- calibre-2.5.0.orig/src/calibre/gui2/add.py 1989-12-31 22:00:00.000000000 -0200 -+++ calibre-2.5.0/src/calibre/gui2/add.py 2014-10-04 19:23:44.121935941 -0300 -@@ -85,11 +85,8 @@ - prints('Corrupt ZIP file, trying to use local headers') - from calibre.utils.localunzip import extractall - extractall(self.path, self.tdir) -- elif self.path.lower().endswith('.rar'): -- from calibre.utils.unrar import extract -- extract(self.path, self.tdir) - else: -- raise ValueError('Can only process ZIP or RAR archives') -+ raise ValueError('Can only process ZIP archives') - - def run(self): - if self.tdir is not None: -@@ -296,7 +293,7 @@ - self.pd.canceled_signal.connect(self.canceled) - - def add_recursive(self, root, single=True): -- if os.path.exists(root) and os.path.isfile(root) and root.lower().rpartition('.')[-1] in {'zip', 'rar'}: -+ if os.path.exists(root) and os.path.isfile(root) and root.lower().rpartition('.')[-1] in {'zip'}: - self.path = tdir = PersistentTemporaryDirectory('_arcv_') - else: - self.path = root + self.do_add_recursive(paths, single, list_of_archives=True) + +diff -Nur calibre-2.10.0.orig/src/calibre/gui2/add.py calibre-2.10.0/src/calibre/gui2/add.py +--- calibre-2.10.0.orig/src/calibre/gui2/add.py 2014-11-14 01:22:49.000000000 -0200 ++++ calibre-2.10.0/src/calibre/gui2/add.py 2014-11-14 20:30:34.303402987 -0200 +@@ -137,9 +137,6 @@ + prints('Corrupt ZIP file, trying to use local headers') + from calibre.utils.localunzip import extractall + extractall(source, tdir) +- elif source.lower().endswith('.rar'): +- from calibre.utils.unrar import extract +- extract(source, tdir) + return tdir + + try: diff -Nur calibre-1.204.1.orig/src/calibre/library/server/opds.py calibre-1.204.1/src/calibre/library/server/opds.py --- calibre-1.204.1.orig/src/calibre/library/server/opds.py 1989-12-31 22:00:00.000000000 -0200 +++ calibre-1.204.1/src/calibre/library/server/opds.py 2014-08-03 19:37:20.293588940 -0300 @@ -705,10 +693,10 @@ diff -Nur calibre-1.204.1.orig/src/calibre/web/feeds/feedparser.py calibre-1.204 def __init__(self, data, baseuri, encoding): self.document = BeautifulSoup.BeautifulSoup(data) -diff -Nur calibre-2.7.0.orig/translations/calibre/main.pot calibre-2.7.0/translations/calibre/main.pot ---- calibre-2.7.0.orig/translations/calibre/main.pot 1989-12-31 22:00:00.000000000 -0200 -+++ calibre-2.7.0/translations/calibre/main.pot 2014-10-24 15:03:21.464286712 -0200 -@@ -4032,7 +4032,7 @@ +diff -Nur calibre-2.10.0.orig/translations/calibre/main.pot calibre-2.10.0/translations/calibre/main.pot +--- calibre-2.10.0.orig/translations/calibre/main.pot 2014-11-14 01:25:17.000000000 -0200 ++++ calibre-2.10.0/translations/calibre/main.pot 2014-11-14 20:25:07.487764134 -0200 +@@ -4045,7 +4045,7 @@ msgstr "" #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/archive.py:42 @@ -717,7 +705,7 @@ diff -Nur calibre-2.7.0.orig/translations/calibre/main.pot calibre-2.7.0/transla msgstr "" #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/book/base.py:652 -@@ -11573,7 +11573,7 @@ +@@ -11554,7 +11554,7 @@ msgstr "" #: /home/kovid/work/calibre/src/calibre/gui2/dialogs/comicconf.py:33 -- cgit v1.2.3-54-g00ecf