From 407e856b1a8e2fff32c210a19053bd7242caab80 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 16 Oct 2008 18:02:37 -0700 Subject: [PATCH] version 0.4.97 --- src/calibre/constants.py | 2 +- src/calibre/ebooks/lrf/txt/convert_from.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/constants.py b/src/calibre/constants.py index 3f20c0cc97..b93f64ee1f 100644 --- a/src/calibre/constants.py +++ b/src/calibre/constants.py @@ -2,7 +2,7 @@ __license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net' __docformat__ = 'restructuredtext en' __appname__ = 'calibre' -__version__ = '0.4.96' +__version__ = '0.4.97' __author__ = "Kovid Goyal " ''' Various run time constants. diff --git a/src/calibre/ebooks/lrf/txt/convert_from.py b/src/calibre/ebooks/lrf/txt/convert_from.py index ff2378b8cc..ff8862a089 100644 --- a/src/calibre/ebooks/lrf/txt/convert_from.py +++ b/src/calibre/ebooks/lrf/txt/convert_from.py @@ -31,7 +31,8 @@ def fix_image_includes(tdir, match): p = os.path.dirname(dest) if not os.path.exists(p): os.makedirs(p) - shutil.copyfile(src, dest) + if not os.path.exists(dest): + shutil.copyfile(src, dest) def generate_html(txtfile, encoding, tdir):