Commits

Ivo Hinkelmann  committed 3fda826

contl10n01: fixed dest_path, add platfrom context to error mail

  • Participants
  • Parent commits ac28b55

Comments (0)

Files changed (2)

File l10ntools/scripts/tool/commands.py

         self._cws_root = utils.Util.replace_variables(tool_cfg.get("CWS","cws_root"), env, tool_cfg, self._log)  
         self._l10n_path = tool_cfg.get("L10N Dir", "l10n_rel_path")
         self._lic_header = tool_cfg.get("L10N Dir", "lic_header_rel_path") 
-        self._dest_path = tool_cfg.get("Download Server" , "dest_path")
-        
+        self._dest_path = utils.Util.replace_variables(tool_cfg.get("Download Server", "dest_path"),  env, tool_cfg, self._log)  
 
     def read_enabled_langs(self):
         enabled_langs_file = self._cws_root + "/setup_native/source/win32/msi-encodinglist.txt"

File l10ntools/scripts/tool/utils.py

         #self._bot_model.contl10n_status = "HAS_ERROR" 
         #self._bot_model.set_hint(text)
         self.log.critical(text)
-        Util.send_mail(text, "Contl10n bot error", self)
+        Util.send_mail(Util.get_platfrom()+ ": " + text, "Contl10n bot error", self)
         #sys.exit(1)
         raise exception.BotError