gbp.command_wrappers.CatenateTarArchive(Command) class documentationgbp.command_wrappers
(View In Hierarchy)
Wrap tar to catenate a tar file with the next
| Method | __init__ | Undocumented |
| Instance Variable | archive | Undocumented |
| Method | __call__ | Run the command and convert all errors into CommandExecFailed. Assumes that the lower levels printed an error message (the command itself and also via our logging api) - only useful if you only expect 0 as result. |
Inherited from Command:
| Instance Variable | cmd | Undocumented |
| Instance Variable | args | Undocumented |
| Instance Variable | run_error | Undocumented |
| Instance Variable | shell | Undocumented |
| Instance Variable | retcode | Undocumented |
| Instance Variable | stderr | Undocumented |
| Instance Variable | capture_stderr | Undocumented |
| Instance Variable | cwd | Undocumented |
| Instance Variable | env | Undocumented |
| Method | call | Like __call__ but let the caller handle the return status and don't use the logging api for errors. |
| Method | __call | Wraps subprocess.call so we can be verbose and fix python's SIGPIPE handling |
| Method | __run | run self.cmd adding args as additional arguments |
Run the command and convert all errors into CommandExecFailed. Assumes that the lower levels printed an error message (the command itself and also via our logging api) - only useful if you only expect 0 as result.
| Parameters | quiet | don't log failed execution to stderr. Mostly useful during unit testing (type: bool>>> Command("/bin/true")(["foo", "bar"]) >>> Command("/foo/bar")(quiet=True) Traceback (most recent call last): ... CommandExecFailed) |