[meld] build_helpers: Check for help translations, in case we have LINGUAS



commit a5fd9e859652746cad90cf84566d9457c19fe9a2
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Mon Mar 3 06:51:36 2014 +1000

    build_helpers: Check for help translations, in case we have LINGUAS
    
    We can't just assume that we always have translations for everything in
    a user's LINGUAS variable. Normal translations handled this already,
    but help translations didn't.

 meld/build_helpers.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/meld/build_helpers.py b/meld/build_helpers.py
index 6669497..1c2009b 100644
--- a/meld/build_helpers.py
+++ b/meld/build_helpers.py
@@ -94,6 +94,9 @@ class build_help(distutils.cmd.Command):
 
         for lang in self.selected_languages:
             source_path = os.path.join(self.help_dir, lang)
+            if not os.path.exists(source_path):
+                continue
+
             build_path = os.path.join('build', self.help_dir, lang)
             if not os.path.exists(build_path):
                 os.makedirs(build_path)
@@ -132,6 +135,9 @@ class build_help(distutils.cmd.Command):
     def check_help(self):
         for lang in self.selected_languages:
             build_path = os.path.join('build', self.help_dir, lang)
+            if not os.path.exists(build_path):
+                continue
+
             pages = [os.path.basename(p) for p in self.C_PAGES]
             for page in pages:
                 page_path = os.path.join(build_path, page)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]