[library-web] Improve no-lc-dist to work with older docbook modules
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] Improve no-lc-dist to work with older docbook modules
- Date: Mon, 27 Jan 2014 16:10:50 +0000 (UTC)
commit 2b57343806d798719fccecc65bd2854ef30ed9ed
Author: Frédéric Péters <fpeters 0d be>
Date: Mon Jan 27 16:10:11 2014 +0000
Improve no-lc-dist to work with older docbook modules
src/modtypes/gnomedocbook.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/modtypes/gnomedocbook.py b/src/modtypes/gnomedocbook.py
index 2b5aa22..6478456 100644
--- a/src/modtypes/gnomedocbook.py
+++ b/src/modtypes/gnomedocbook.py
@@ -163,7 +163,10 @@ class GnomeDocbookModule(DocModule):
xml_file = os.path.join(lang_dirname, 'index.docbook')
if not os.path.exists(xml_file):
- self.generate_translations(os.path.join(ext_dirname, self.dirname), lang)
+ xml_file = os.path.join(lang_dirname, doc_module + '.xml')
+ if not os.path.exists(xml_file):
+ self.generate_translations(os.path.join(ext_dirname, self.dirname), lang)
+ xml_file = os.path.join(lang_dirname, 'index.docbook')
if not os.path.exists(xml_file):
xml_file = os.path.join(lang_dirname, doc_module + '.xml')
if not os.path.exists(xml_file):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]