Upstream source. Can be either an unpacked dir, a tarball or another
type of archive
|
|
__init__(self,
name,
unpacked=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
|
|
bool
|
_check_orig(self)
Check if upstream source format can be used as orig tarball. |
|
|
|
|
_unpack_archive(self,
dir,
filters)
Unpack packed upstream sources into a given directory. |
|
|
|
|
_unpack_tar(self,
dir,
filters)
Unpack a tarball to dir applying a list of filters. |
|
|
|
|
|
|
|
_unpacked_toplevel(self,
dir)
unpacked archives can contain a leading directory or not |
|
|
|
tuple
|
guess_version(self,
extra_regex='')
Guess the package name and version from the filename of an upstream
archive. |
|
|
bool
|
is_dir(self)
Returns:
True if if upstream sources are an unpacked directory,
False otherwise |
|
|
bool
|
is_orig(self)
Returns:
True if sources are suitable as upstream source,
False otherwise |
|
|
|
UpstreamSource
|
pack(self,
newarchive,
filters=[])
Recreate a new archive from the current one |
|
|
|
|
unpack(self,
dir,
filters=[])
Unpack packed upstream sources into a given directory and determine
the toplevel of the source tree. |
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|