class documentation

class DebianPristineTar(PristineTar):

View In Hierarchy

The pristine-tar branch in a Debian git repository

Method checkout Checkout the orig tarball for package package of version and compression type comp_type to output_dir
Method has_commit Do we have a pristine-tar commit for package package at version {version} with compression type comp_type?

Inherited from PristineTar:

Method __init__ Undocumented
Method commit Commit an archive archive to the pristine tar branch using upstream branch ${upstream}.
Method get_commit Get the pristine-tar commit of a package matching archive_regexp. Checks also whether the commit contains a signature file.
Method has_feature_sig Does this pristine-tar support detached upstream signatures
Method has_feature_verify 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_error Undocumented
Method _commit_contains_file Does the given commit contain a file with the given regex
Method _has_in_output Check if pristine_tar has a certain feature enabled.

Inherited from Command (via PristineTar):

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_stderr Undocumented
Instance Variable capture_stdout Undocumented
Instance Variable cmd Undocumented
Instance Variable cwd Undocumented
Instance Variable env Undocumented
Instance Variable err_reason 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_err Log an error message
Method _log_err Log an error message
Method _reset_state Undocumented
def checkout(self, package, version, comp_type, output_dir, component=None, quiet=False, signature=False):

Checkout the orig tarball for package package of version and compression type comp_type to output_dir

Parameters
package:strthe package to generate the orig tarball for
version:strthe version to check generate the orig tarball for
comp_type:strthe compression type of the tarball
output_dir:strthe directory to put the tarball into
componentUndocumented
quietUndocumented
signatureUndocumented
def has_commit(self, package, version, comp_type=None):

Do we have a pristine-tar commit for package package at version {version} with compression type comp_type?

Parameters
package:strthe package to look for
version:strthe upstream version to look for
comp_type:strthe compression type