Trees | Indices | Help |
|
---|
|
object --+ | UpstreamSource
Upstream source. Can be either an unpacked dir, a tarball or another type of archive
|
|||
|
|||
bool
|
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
bool
|
|
||
bool
|
|
||
bool
|
|
||
UpstreamSource |
|
||
|
|||
Inherited from |
|
|||
|
|||
|
|
|||
boolean |
_orig are the upstream sources already suitable as an upstream tarball |
||
string |
_path path to the upstream sources |
||
string |
_unpacked path to the unpacked source tree |
|
|||
archive_fmt Archive format of the sources, e.g. |
|||
compression Compression format of the sources, e.g. |
|||
path | |||
prefix Prefix, i.e. |
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Check if upstream source format can be used as orig tarball. This doesn't imply that the tarball is correctly named.
|
Determine the prefix, i.e. the "leading directory name |
Parse content of the top directory from a file list >>> UpstreamSource._get_topdir_files([]) set([]) >>> UpstreamSource._get_topdir_files([('-', 'foo/bar')]) set([('d', 'foo')]) >>> UpstreamSource._get_topdir_files([('d', 'foo/'), ('-', 'foo/bar')]) set([('d', 'foo')]) >>> UpstreamSource._get_topdir_files([('d', 'foo'), ('-', 'foo/bar')]) set([('d', 'foo')]) >>> UpstreamSource._get_topdir_files([('-', 'fob'), ('d', 'foo'), ('d', 'foo/bar'), ('-', 'foo/bar/baz')]) set([('-', 'fob'), ('d', 'foo')]) >>> UpstreamSource._get_topdir_files([('-', './foo/bar')]) set([('d', 'foo')]) >>> UpstreamSource._get_topdir_files([('-', 'foo/bar'), ('-', '.foo/bar')]) set([('d', '.foo'), ('d', 'foo')]) |
Unpack packed upstream sources into a given directory. Return True if the output was filtered, otherwise False. |
Unpack a tarball to dir applying a list of filters. Leave the cleanup to the caller in case of an error. |
|
|
|
Recreate a new archive from the current one
|
|
archive_fmtArchive format of the sources, e.g. 'tar'
|
compressionCompression format of the sources, e.g. 'gzip'
|
path
|
prefixPrefix, i.e. the 'leading directory name' of the sources
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Dec 31 11:30:00 2016 | http://epydoc.sourceforge.net |