Commits

Ivo Hinkelmann  committed a93fb62

contl10n01: only build en-US insetset in prebuild step

  • Participants
  • Parent commits 243b091

Comments (0)

Files changed (1)

File l10ntools/scripts/tool/commands.py

         self._log = log
         self._cws_root = utils.Util.replace_variables(tool_cfg.get("CWS","cws_root"), env, tool_cfg, self._log)
         self._num_of_procs = utils.Util.replace_variables(tool_cfg.get("BOT","num_of_procs"), env, tool_cfg, self._log)
+    
+    def modifiy_pack_lst(self):
+        """Create en-US insetset """
+
+        utils.Util.rm(self._cws_root + "/instsetoo_native/util/pack.lst.bak", self._log)
+        utils.Util.rename(self._cws_root + "/instsetoo_native/util/pack.lst", self._cws_root + "/instsetoo_native/util/pack.lst.bak", self._log)
         
+        pack_lst = "OpenOffice   unxlngi6.pro,unxsoli4.pro,unxsols4.pro,wntmsci12.pro,unxlngx6.pro,unxmacxi.pro  en-US openoffice"
+
+        try:
+            fh = open(self._cws_root + "/instsetoo_native/util/pack.lst","wb")
+            fh.write(pack_lst)
+            fh.close
+        except IOError:
+            self._log.die("Can not write file "+self._cws_root + "/instsetoo_native/util/pack.lst")
+
+    
+
     def do(self, env):
         # REMOVE ME
         #return 
-    
+        
+        self.modifiy_pack_lst()
+
         old_path = os.getcwd()
         os.chdir(self._cws_root + "/instsetoo_native")