]> git.pld-linux.org Git - packages/calibre.git/blame_incremental - calibre-manpages.patch
- calibre-locales patch fixed (bad indentation)
[packages/calibre.git] / calibre-manpages.patch
... / ...
CommitLineData
1diff -Nur calibre.orig/src/calibre/linux.py calibre/src/calibre/linux.py
2--- calibre.orig/src/calibre/linux.py 2011-05-27 10:42:14.000000000 -0600
3+++ calibre/src/calibre/linux.py 2011-05-27 20:06:53.461866793 -0600
4@@ -319,7 +319,7 @@
5 continue
6 parser = parser()
7 raw = create_man_page(prog, parser)
8- if isbsd:
9+ if isbsd or islinux:
10 manfile = os.path.join(manpath, prog+'.1')
11 else:
12 manfile = os.path.join(manpath, prog+'.1'+__appname__+'.bz2')
13diff -Nur calibre.orig/src/calibre/utils/help2man.py calibre/src/calibre/utils/help2man.py
14--- calibre.orig/src/calibre/utils/help2man.py 2011-05-27 10:42:14.000000000 -0600
15+++ calibre/src/calibre/utils/help2man.py 2011-05-27 20:08:28.314256418 -0600
16@@ -4,7 +4,7 @@
17 __docformat__ = 'restructuredtext en'
18
19 import time, bz2
20-from calibre.constants import isbsd
21+from calibre.constants import isbsd, islinux
22
23 from calibre.constants import __version__, __appname__, __author__
24
25@@ -58,9 +58,9 @@
26 lines = [x if isinstance(x, unicode) else unicode(x, 'utf-8', 'replace') for
27 x in lines]
28
29- if not isbsd:
30- return bz2.compress((u'\n'.join(lines)).encode('utf-8'))
31- else:
32+ if isbsd or islinux:
33 return (u'\n'.join(lines)).encode('utf-8')
34+ else:
35+ return bz2.compress((u'\n'.join(lines)).encode('utf-8'))
36
37
This page took 0.052016 seconds and 4 git commands to generate.