[meld] build_helpers: Don't create empty figures directories (bgo#775954)



commit 6e5cf5305329cc6cdba2f53cf355d6b0da604c06
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Wed Dec 14 09:05:23 2016 +1000

    build_helpers: Don't create empty figures directories (bgo#775954)

 meld/build_helpers.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/meld/build_helpers.py b/meld/build_helpers.py
index 803b64c..a75204a 100644
--- a/meld/build_helpers.py
+++ b/meld/build_helpers.py
@@ -154,8 +154,9 @@ class build_help(distutils.cmd.Command):
             path_help = os.path.join('share', 'help', lang, name)
             path_figures = os.path.join(path_help, 'figures')
             data_files.append((path_help, xml_files + mallard_files))
-            data_files.append(
-                (path_figures, glob.glob('%s/figures/*.png' % build_path)))
+            figures = glob.glob('%s/figures/*.png' % build_path)
+            if figures:
+                data_files.append((path_figures, figures))
 
         return data_files
 


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