Esempio n. 1
0
 def _safe_run(self, cmd):
     out, err, ret = run_command(cmd)
     if ret != 0:
         raise SchrootCommandError(err)
     return out, err, ret
Esempio n. 2
0
 def _safe_run(self, cmd):
     out, err, ret = run_command(cmd)
     if ret != 0:
         raise SchrootCommandError(err)
     return out, err, ret
Esempio n. 3
0
 def run(self, cmd, **kwargs):
     with self._command(cmd, kwargs) as command:
         return run_command(command, **kwargs)
Esempio n. 4
0
 def run(self, cmd, **kwargs):
     with self._command(cmd, kwargs) as command:
         return run_command(command, **kwargs)
Esempio n. 5
0
 def _safe_run(self, cmd):
     # log.debug("Command: %s" % (" ".join(cmd)))
     out, err, ret = run_command(cmd)
     if ret != 0:
         raise SchrootCommandError()
     return out, err, ret
Esempio n. 6
0
 def run(self, cmd, **kwargs):
     command = self._command(cmd, kwargs)
     return run_command(command, **kwargs)
Esempio n. 7
0
 def _safe_run(self, cmd):
     # log.debug("Command: %s" % (" ".join(cmd)))
     out, err, ret = run_command(cmd)
     if ret != 0:
         raise SchrootCommandError()
     return out, err, ret
Esempio n. 8
0
 def run(self, cmd, **kwargs):
     command = self._command(cmd, kwargs)
     return run_command(command, **kwargs)