class documentation
class DebianPkgPolicy(PkgPolicy):
Packaging policy for Debian Source Packages
>>> DebianPkgPolicy.is_valid_upstreamversion('1:9.8.4.dfsg.P1-6') True >>> DebianPkgPolicy.is_valid_upstreamversion('-1') False
Static Method | build |
Given a source package's name, version and compression return the name of the corresponding upstream tarball signature file. |
Static Method | build |
Given a source package's name, version and compression return the name of the corresponding upstream tarball. |
Class Variable | debianversion |
Undocumented |
Class Variable | packagename |
Undocumented |
Class Variable | packagename |
Undocumented |
Class Variable | upstreamversion |
Undocumented |
Class Variable | upstreamversion |
Undocumented |
Inherited from PkgPolicy
:
Class Method | has |
Undocumented |
Class Method | is |
Is this a valid package name? |
Class Method | is |
Is this a valid upstream version number? |
Class Method | symlink |
Undocumented |
Class Method | version |
Generate a string from a given format and a version. The extracted version can be passed through the sanitizer function argument before being formatted into a string. |
Static Method | guess |
Guess the package name and version from the filename of an upstream archive. |
Static Method | has |
Check orig tarball and additional tarballs exists in dir |
Static Method | symlink |
symlink orig tarball from orig_dir to output_dir |
Class Variable | version |
Undocumented |
Given a source package's name, version and compression return the name of the corresponding upstream tarball signature file.
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', component="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 |
component | Undocumented |
Returns | |
str | the tarballs name corresponding to the input parameters |