Wrap dpkg-source to extract a Debian source package into a certain directory

Method __init__ Undocumented
Method __call__ Run the command and raise exception on errors
Instance Variable run_error Undocumented

Inherited from Command:

Instance Variable cmd Undocumented
Instance Variable args Undocumented
Instance Variable shell Undocumented
Instance Variable capture_stdout Undocumented
Instance Variable capture_stderr Undocumented
Instance Variable cwd Undocumented
Instance Variable env Undocumented
Instance Variable retcode Undocumented
Instance Variable stdout Undocumented
Instance Variable stderr Undocumented
Instance Variable err_reason Undocumented
Method call Like __call__ but let the caller handle the return status.
Static Method _f Build error string template
Method _reset_state Undocumented
Method __call Wraps subprocess.call so we can be verbose and fix Python's SIGPIPE handling
Method _log_err Log an error message
Method _format_err Log an error message
def __init__(self):
Undocumented
def __call__(self, dsc, output_dir):

Run the command and raise exception on errors

If run quietly it will not print an error message via the gbp.log logging API.

Whether the command prints anything to stdout/stderr depends on the capture_stderr, capture_stdout instance variables.

All errors will be reported as subclass of the CommandExecFailed exception including a non zero exit status of the run command.

Parametersargsadditional command line arguments (type: list of strings)
quietdon't log failed execution to stderr. Mostly useful during unit testing (type: bool
>>> Command("/bin/true")(["foo", "bar"])
>>> Command("/foo/bar")(quiet=True) # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
gbp.command_wrappers.CommandExecFailed
)
run_error =
Undocumented
API Documentation for git-buildpackage, generated by pydoctor at 2021-02-01 08:15:22.