class documentation

class RpmPkgPolicy(PkgPolicy):

View In Hierarchy

Packaging policy for RPM

Class Changelog Container for changelog related policy settings
Class ChangelogEntryFormatter Helper class for generating changelog entries from git commits
Class Method is_valid_orig_archive Is this a valid orig source archive
Class Variable alnum Undocumented
Class Variable name_whitelist_chars Undocumented
Class Variable packagename_msg Undocumented
Class Variable packagename_re Undocumented
Class Variable python_rpmlib_module_name Undocumented
Class Variable upstreamversion_msg Undocumented
Class Variable upstreamversion_re Undocumented
Class Variable version_whitelist_chars Undocumented
@classmethod
def is_valid_orig_archive(cls, filename):

Is this a valid orig source archive

Parameters
filename:strupstream source archive filename
Returns

bool

>>> RpmPkgPolicy.is_valid_orig_archive("foo/bar_baz.tar.gz")
True
>>> RpmPkgPolicy.is_valid_orig_archive("foo.bar.tar")
True
>>> RpmPkgPolicy.is_valid_orig_archive("foo.bar")
False
>>> RpmPkgPolicy.is_valid_orig_archive("foo.gz")
False
true if valid upstream source archive filename
alnum: str =

Undocumented

name_whitelist_chars: str =

Undocumented

packagename_msg =

Undocumented

packagename_re =

Undocumented

python_rpmlib_module_name: str =

Undocumented

upstreamversion_msg =

Undocumented

upstreamversion_re =

Undocumented

version_whitelist_chars: str =

Undocumented