Package gbp :: Package deb :: Module pristinetar :: Class DebianPristineTar

[hide private]
[frames] | no frames]

# Class DebianPristineTar

                  object --+
                           |
    command_wrappers.Command --+
                               |
     pkg.pristinetar.PristineTar --+
                                   |
                                  DebianPristineTar

The pristine-tar branch in a Debian git repository

Instance Methods | [hide private]

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? |

checkout(self, package, version, comp_type, output_dir) Checkout the orig tarball for package package of version and compression type comp_type to output_dir |

Inherited from `pkg.pristinetar.PristineTar`: `__init__`, `commit`, `get_commit`

Inherited from `command_wrappers.Command`: `__call__`, `call`

Inherited from `command_wrappers.Command` (private): `_format_err`, `_log_err`, `_reset_state`

Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables | [hide private]

Inherited from `pkg.pristinetar.PristineTar`: `branch`, `cmd`

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### 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` (`str`) - the package to look for
  - `version` (`str`) - the upstream version to look for
  - `comp_type` (`str`) - the compression type
Overrides: pkg.pristinetar.PristineTar.has_commit

### checkout(self, package, version, comp_type, output_dir)

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

Parameters:
  - `package` (`str`) - the package to generate the orig tarball for
  - `version` (`str`) - the version to check generate the orig tarball for
  - `comp_type` (`str`) - the compression type of the tarball
  - `output_dir` (`str`) - the directory to put the tarball into
Overrides: pkg.pristinetar.PristineTar.checkout