class documentation
class PristineTar(Command):
Known subclasses: gbp.deb.pristinetar.DebianPristineTar
The pristine-tar branch in a git repository
| Method | __init__ |
Undocumented |
| Method | checkout |
Checkout an orig archive from pristine-tar branch |
| Method | commit |
Commit an archive archive to the pristine tar branch using upstream branch ${upstream}. |
| Method | get |
Get the pristine-tar commit of a package matching archive_regexp. Checks also whether the commit contains a signature file. |
| Method | has |
Do we have a pristine-tar commit for a package matching archive_regexp. |
| Method | has |
Does this pristine-tar support detached upstream signatures |
| Method | has |
Does this pristine-tar support tarball verification |
| Method | verify |
Verify an archive's archive checksum using to the pristine tar branch |
| Class Variable | branch |
Undocumented |
| Instance Variable | repo |
Undocumented |
| Instance Variable | run |
Undocumented |
| Method | _commit |
Does the given commit contain a file with the given regex |
| Method | _has |
Check if pristine_tar has a certain feature enabled. |
Inherited from Command:
| Method | __call__ |
Run the command and raise exception on errors |
| Method | call |
Like __call__ but let the caller handle the return status. |
| Instance Variable | args |
Undocumented |
| Instance Variable | capture |
Undocumented |
| Instance Variable | capture |
Undocumented |
| Instance Variable | cmd |
Undocumented |
| Instance Variable | cwd |
Undocumented |
| Instance Variable | env |
Undocumented |
| Instance Variable | err |
Undocumented |
| Instance Variable | retcode |
Undocumented |
| Instance Variable | shell |
Undocumented |
| Instance Variable | stderr |
Undocumented |
| Instance Variable | stdout |
Undocumented |
| Static Method | _f |
Build error string template |
| Method | __call |
Wraps subprocess.call so we can be verbose and fix Python's SIGPIPE handling |
| Method | _format |
Log an error message |
| Method | _log |
Log an error message |
| Method | _reset |
Undocumented |
overridden in
gbp.deb.pristinetar.DebianPristineTarCheckout an orig archive from pristine-tar branch
| Parameters | |
| archive:str | the name of the orig archive |
| quiet | Undocumented |
| signaturefile | Undocumented |
Commit an archive archive to the pristine tar branch using upstream branch ${upstream}.
| Parameters | |
| archive:str | the archive to commit |
| upstream:str | the upstream branch to diff against |
| quiet | Undocumented |
| signaturefile | Undocumented |
Get the pristine-tar commit of a package matching archive_regexp. Checks also whether the commit contains a signature file.
| Parameters | |
| archive | archive name to look for (regexp wildcards allowed) |
| Returns | |
| tuple of str and bool | Commit, True if commit contains a signature file |
overridden in
gbp.deb.pristinetar.DebianPristineTarDo we have a pristine-tar commit for a package matching archive_regexp.
| Parameters | |
| archive | archive name to look for (regexp wildcards allowed) |