Exemplo n.º 1
0
 def run(self):
     start = time.time()
     self.log.info("Mashing %s", self.tag)
     out, err, returncode = util.cmd(self.mash_cmd)
     self.log.info("Took %s seconds to mash %s", time.time() - start, self.tag)
     if returncode != 0:
         self.log.error("There was a problem running mash (%d)" % returncode)
         self.log.error(out)
         self.log.error(err)
         raise Exception("mash failed")
     else:
         self.success = True
     return out, err, returncode
Exemplo n.º 2
0
 def run(self):
     start = time.time()
     self.log.info('Mashing %s', self.tag)
     out, err, returncode = util.cmd(self.mash_cmd)
     self.log.info('Took %s seconds to mash %s',
                   time.time() - start, self.tag)
     if returncode != 0:
         self.log.error('There was a problem running mash (%d)' %
                        returncode)
         self.log.error(out)
         self.log.error(err)
         raise Exception('mash failed')
     else:
         self.success = True
     return out, err, returncode
Exemplo n.º 3
0
 def update_comps(self):
     """
     Update our comps git module and merge the latest translations so we can
     pass it to mash insert into the repodata.
     """
     self.log.info("Updating comps")
     comps_dir = config.get('comps_dir')
     comps_url = config.get('comps_url')
     if not os.path.exists(comps_dir):
         util.cmd(['git', 'clone', comps_url], os.path.dirname(comps_dir))
     if comps_url.startswith('https://'):
         util.cmd(['git', 'pull'], comps_dir)
     else:
         self.log.error('comps_url must start with https://')
         return
     util.cmd(['make'], comps_dir)
Exemplo n.º 4
0
 def update_comps(self):
     """
     Update our comps git module and merge the latest translations so we can
     pass it to mash insert into the repodata.
     """
     self.log.info("Updating comps")
     comps_dir = config.get("comps_dir")
     comps_url = config.get("comps_url")
     if not os.path.exists(comps_dir):
         util.cmd(["git", "clone", comps_url], os.path.dirname(comps_dir))
     if comps_url.startswith("https://"):
         util.cmd(["git", "pull"], comps_dir)
     else:
         self.log.error("comps_url must start with https://")
         return
     util.cmd(["make"], comps_dir)
Exemplo n.º 5
0
 def update_comps(self):
     """
     Update our comps git module and merge the latest translations so we can
     pass it to mash insert into the repodata.
     """
     self.log.info("Updating comps")
     comps_dir = config.get('comps_dir')
     comps_url = config.get('comps_url')
     if not os.path.exists(comps_dir):
         util.cmd(['git', 'clone', comps_url], os.path.dirname(comps_dir))
     if comps_url.startswith('https://'):
         util.cmd(['git', 'pull'], comps_dir)
     else:
         self.log.error('comps_url must start with https://')
         return
     util.cmd(['make'], comps_dir)
Exemplo n.º 6
0
 def test_cmd_failure(self):
     try:
         cmd('false')
         assert False
     except Exception:
         pass
Exemplo n.º 7
0
 def test_cmd_failure(self):
     try:
         cmd('false')
         assert False
     except Exception:
         pass