class documentation
class UpstreamSource(object):
Upstream source. Can be either an unpacked dir, a tarball or another type of archive
Static Method | known |
Undocumented |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | guess |
Undocumented |
Method | is |
No summary |
Method | is |
No summary |
Method | pack |
Recreate a new archive from the current one |
Method | signaturefile |
Undocumented |
Method | unpack |
Unpack packed upstream sources into a given directory (filtering out files specified by filters) and determine the toplevel of the source tree. |
Instance Variable | unpacked |
Undocumented |
Property | path |
Undocumented |
Property | signaturefile |
Undocumented |
Method | _check |
Check if upstream source format can be used as orig tarball. This doesn't imply that the tarball is correctly named. |
Method | _unpack |
Unpack packed upstream sources into a given directory allowing to filter out files in case of tar archives. |
Method | _unpack |
Unpack a tarball to dir applying a list of filters. Leave the cleanup to the caller in case of an error. |
Method | _unpack |
Undocumented |
Method | _unpacked |
unpacked archives can contain a leading directory or not |
Class Variable | _unpacked |
path to the unpacked source tree |
Instance Variable | _orig |
are the upstream sources already suitable as an upstream tarball |
Instance Variable | _path |
path to the upstream sources |
Instance Variable | _pkg |
Undocumented |
Instance Variable | _sig |
Undocumented |
def pack(self, newarchive, filters=None):
Recreate a new archive from the current one
Parameters | |
newarchive:string | the name of the new archive |
filters:array of strings | tar filters to apply |
Returns | |
UpstreamSource | the new upstream source |
def unpack(self, dir, filters=None):
Unpack packed upstream sources into a given directory (filtering out files specified by filters) and determine the toplevel of the source tree.
def _check_orig(self):
Check if upstream source format can be used as orig tarball. This doesn't imply that the tarball is correctly named.
Returns | |
bool | True if upstream source format is suitable as upstream tarball, False otherwise. |
def _unpack_archive(self, dir, filters):
Unpack packed upstream sources into a given directory allowing to filter out files in case of tar archives.