[library-web] keep a copy of indexes file if debug is enabled
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] keep a copy of indexes file if debug is enabled
- Date: Sat, 2 Apr 2011 13:58:36 +0000 (UTC)
commit 7b9c509023ed897f41e4de57a6a7c57b69d3e298
Author: Frédéric Péters <fpeters 0d be>
Date: Sat Apr 2 19:28:14 2011 +0530
keep a copy of indexes file if debug is enabled
src/lgo.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/lgo.py b/src/lgo.py
index d09727e..65ee804 100755
--- a/src/lgo.py
+++ b/src/lgo.py
@@ -656,6 +656,8 @@ class Lgo(App):
self.indexes_tmp_file = tempfile.NamedTemporaryFile()
tree = ET.ElementTree(indexes)
tree.write(self.indexes_tmp_file.name)
+ if self.debug:
+ tree.write('/tmp/library-web-indexes.xml.%s' % os.getpid())
def create_section(self, index, section, section_docs, lang):
section_node = ET.SubElement(index, 'section')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]