build_tarball_name(name,
version,
compression,
dir=None,
subtarball=None)
Static Method
|
|
Given a source package's name, version and
compression return the name of the corresponding upstream
tarball.
>>> DebianPkgPolicy.build_tarball_name('foo', '1.0', 'bzip2')
'foo_1.0.orig.tar.bz2'
>>> DebianPkgPolicy.build_tarball_name('bar', '0.0~git1234', 'xz')
'bar_0.0~git1234.orig.tar.xz'
>>> DebianPkgPolicy.build_tarball_name('bar', '0.0~git1234', 'xz', subtarball="foo")
'bar_0.0~git1234.orig-foo.tar.xz'
- Parameters:
name (str ) - the source package's name
version (str ) - the upstream version
compression (str ) - the desired compression
dir (str ) - a directory to prepend
- Returns:
str
- the tarballs name corresponding to the input parameters
|