# `gbp.deb.DpkgCompareVersions(gbpc.Command)` class documentation

Part of `gbp.deb` (View In Hierarchy)

Known subclasses: gbp.scripts.import_dscs.DscCompareVersions

Undocumented

Class Variable | dpkg | Undocumented
Method | __init__ | Undocumented
Method | __call__ | Compare two package versions. Return 0 if the versions are equal, -1 1 if version1 < version2, and 1 otherwise.
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

dpkg =
Undocumented
(type: `str`)
def __init__(self):
overrides gbp.command_wrappers.Command.__init__
overridden in gbp.scripts.import_dscs.DscCompareVersions
Undocumented
def __call__(self, version1, version2):
overrides gbp.command_wrappers.Command.__call__
overridden in gbp.scripts.import_dscs.DscCompareVersions

Compare two package versions. Return 0 if the versions are equal, -1 1 if version1 < version2, and 1 otherwise.

Raises | CommandExecFailed | if the version comparison fails

run_error =
Undocumented