gbp.deb.DpkgCompareVersions(gbpc.Command)
class documentationgbp.deb
(View In Hierarchy)
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 oterwise. |
Instance Variable | run_error | Undocumented |
Inherited from Command:
Instance Variable | cmd | Undocumented |
Instance Variable | args | 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 |
Compare two package versions. Return 0 if the versions are equal, -1 1 if version1 < version2, and 1 oterwise.
Raises | CommandExecFailed | if the version comparison fails |