[fusion-commits] Compizconfig Settings Manager in Python: Changes to 'master' (9af6fbb5cb775736c7539a236c8822d35cd7d4bd)

guillaume at server.beryl-project.org guillaume at server.beryl-project.org
Fri Aug 3 11:09:12 CEST 2007


New commits:
commit 9af6fbb5cb775736c7539a236c8822d35cd7d4bd
Author: Guillaume Seguin <guillaume at segu.in>
Date:   Fri Aug 3 11:09:07 2007 +0200

    * Fix i18n mo files install


 setup.py |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)


Modified: fusion/compizconfig/ccsm/setup.py
===================================================================
--- fusion/compizconfig/ccsm/setup.py
+++ fusion/compizconfig/ccsm/setup.py
@@ -117,19 +117,19 @@ data_files = [
                 ("share/ccsm/images", images)
              ]
 
-if sys.argv[1] == "build":
-    podir = os.path.join (os.path.realpath ("."), "po")
-    if os.path.isdir (podir):
-        buildcmd = "msgfmt -o build/locale/%s/ccsm.mo po/%s.po"
-        mopath = "build/locale/%s/ccsm.mo"
-        destpath = "share/locale/%s/LC_MESSAGES"
-        for name in os.listdir (podir):
-            if name[-2:] == "po":
-                name = name[:-3]
+podir = os.path.join (os.path.realpath ("."), "po")
+if os.path.isdir (podir):
+    buildcmd = "msgfmt -o build/locale/%s/ccsm.mo po/%s.po"
+    mopath = "build/locale/%s/ccsm.mo"
+    destpath = "share/locale/%s/LC_MESSAGES"
+    for name in os.listdir (podir):
+        if name[-2:] == "po":
+            name = name[:-3]
+            if sys.argv[1] == "build":
                 if not os.path.isdir ("build/locale/" + name):
                     os.makedirs ("build/locale/" + name)
                 os.system (buildcmd % (name, name))
-                data_files.append ((destpath % name, [mopath % name]))
+            data_files.append ((destpath % name, [mopath % name]))
 
 version_file = open ("VERSION", "r")
 version = version_file.read ().strip ()


More information about the commits mailing list