From de778713335322d20d0dde0f7e7e6d1ec56b6ad4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 11 Feb 2009 21:30:15 -0800 Subject: [PATCH] Fix #1833 (Error with the binary linux installer) --- src/calibre/trac/plugins/download.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/trac/plugins/download.py b/src/calibre/trac/plugins/download.py index 5c1daab0b1..8a5a81ac7f 100644 --- a/src/calibre/trac/plugins/download.py +++ b/src/calibre/trac/plugins/download.py @@ -1,7 +1,7 @@ __license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal ' __appname__ = 'calibre' -import re +import re, textwrap DEPENDENCIES = [ #(Generic, version, gentoo, ubuntu, fedora) @@ -191,7 +191,7 @@ else: return 'linux.html', data, None - LINUX_INSTALLER = r''' + LINUX_INSTALLER = textwrap.dedent(r''' import sys, os, shutil, tarfile, subprocess, tempfile, urllib2, re, stat MOBILEREAD='https://dev.mobileread.com/dist/kovid/calibre/' @@ -382,5 +382,5 @@ else: pi = os.path.join(destdir, 'calibre_postinstall') subprocess.call(pi, shell=True) return 0 - ''' + ''')