mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-27 19:02:58 +02:00
Fix #1518 (bad temporary file handling during manpage creation)
This commit is contained in:
parent
8afce4910c
commit
4d3f3fbf8d
1 changed files with 4 additions and 4 deletions
|
|
@ -2,10 +2,10 @@
|
|||
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||
''' Post installation script for linux '''
|
||||
import sys, os, re, shutil
|
||||
|
||||
from subprocess import check_call, call
|
||||
from calibre import __version__, __appname__
|
||||
from tempfile import NamedTemporaryFile
|
||||
|
||||
from calibre import __version__, __appname__
|
||||
from calibre.devices import devices
|
||||
|
||||
DEVICES = devices()
|
||||
|
|
@ -401,9 +401,9 @@ def install_man_pages(fatal_errors):
|
|||
import subprocess
|
||||
print 'Installing MAN pages...'
|
||||
manpath = '/usr/share/man/man1'
|
||||
f = open_file('/tmp/man_extra', 'wb')
|
||||
f = NamedTemporaryFile()
|
||||
f.write('[see also]\nhttp://%s.kovidgoyal.net\n'%__appname__)
|
||||
f.close()
|
||||
f.flush()
|
||||
manifest = []
|
||||
os.environ['PATH'] += ':'+os.path.expanduser('~/bin')
|
||||
for src in entry_points['console_scripts']:
|
||||
|
|
|
|||
Loading…
Reference in a new issue