Trees | Indices | Help |
|
---|
|
object --+ | UpstreamSource
Upstream source. Can be either an unpacked dir, a tarball or another type of archive
|
|||
|
|||
bool
|
|
||
|
|||
|
|||
|
|||
|
|||
tuple |
|
||
bool
|
|
||
bool
|
|
||
UpstreamSource |
|
||
|
|||
Inherited from |
|
|||
str
|
|
||
|
|
|||
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 |
|
|||
path | |||
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.
|
Unpack a tarball to dir applying a list of filters. Leave the cleanup to the caller in case of an error. |
Given a source package's name, version and compression return the name of the corresponding upstream tarball. >>> UpstreamSource.build_tarball_name('foo', '1.0', 'bzip2') 'foo_1.0.orig.tar.bz2' >>> UpstreamSource.build_tarball_name('bar', '0.0~git1234', 'xz') 'bar_0.0~git1234.orig.tar.xz'
|
Guess the package name and version from the filename of an upstream archive. >>> UpstreamSource('foo-bar_0.2.orig.tar.gz').guess_version() ('foo-bar', '0.2') >>> UpstreamSource('foo-Bar_0.2.orig.tar.gz').guess_version() >>> UpstreamSource('git-bar-0.2.tar.gz').guess_version() ('git-bar', '0.2') >>> UpstreamSource('git-bar-0.2-rc1.tar.gz').guess_version() ('git-bar', '0.2-rc1') >>> UpstreamSource('git-bar-0.2:~-rc1.tar.gz').guess_version() ('git-bar', '0.2:~-rc1') >>> UpstreamSource('git-Bar-0A2d:rc1.tar.bz2').guess_version() ('git-Bar', '0A2d:rc1') >>> UpstreamSource('git-1.tar.bz2').guess_version() ('git', '1') >>> UpstreamSource('kvm_87+dfsg.orig.tar.gz').guess_version() ('kvm', '87+dfsg') >>> UpstreamSource('foo-Bar_0.2.orig.tar.gz').guess_version() >>> UpstreamSource('foo-Bar-a.b.tar.gz').guess_version() >>> UpstreamSource('foo-bar_0.2.orig.tar.xz').guess_version() ('foo-bar', '0.2') >>> UpstreamSource('foo-bar_0.2.orig.tar.lzma').guess_version() ('foo-bar', '0.2')
|
|
|
Recreate a new archive from the current one
|
|
path
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 1 02:17:58 2012 | http://epydoc.sourceforge.net |