Package gbp :: Package scripts :: Package common :: Module import_orig :: Class OrigUpstreamSource

[hide private]
[frames] | no frames]

# Class OrigUpstreamSource

            object --+
                     |
    pkg.UpstreamSource --+
                         |
                        OrigUpstreamSource

Upstream source that will be imported

Instance Methods | [hide private]

needs_repack(self, options) Determine if the upstream sources needs to be repacked |

Inherited from `pkg.UpstreamSource`: `__init__`, `guess_version`, `is_dir`, `is_orig`, `pack`, `unpack`

Inherited from `pkg.UpstreamSource` (private): `_check_orig`, `_unpack_archive`, `_unpack_tar`, `_unpack_zip`, `_unpacked_toplevel`

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

Static Methods | [hide private]

Inherited from `pkg.UpstreamSource`: `known_compressions`

Class Variables | [hide private]

Inherited from `pkg.UpstreamSource` (private): `_orig`, `_path`, `_unpacked`

Properties | [hide private]

Inherited from `pkg.UpstreamSource`: `path` Inherited from `object`: `__class__`

Method Details | [hide private]

### needs_repack(self, options)

Determine if the upstream sources needs to be repacked

We repack if

1. we want to filter out files and use pristine tar since we want to make a filtered tarball available to pristine-tar
2. when we don't have a suitable upstream tarball (e.g. zip archive or unpacked dir) and want to use filters
3. when we don't have a suitable upstream tarball (e.g. zip archive or unpacked dir) and want to use pristine-tar