Package gbp :: Package scripts :: Module import_orig :: Class OrigUpstreamSource
[hide private]
[frames] | no frames]

Class OrigUpstreamSource

        object --+    
                 |    
deb.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 deb.UpstreamSource: __init__, guess_version, is_dir, is_orig, pack, unpack

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

Static Methods [hide private]

Inherited from deb.UpstreamSource: build_tarball_name, known_compressions

Class Variables [hide private]

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

Properties [hide private]

Inherited from deb.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