Packaging policy for RPM

Class Method is_valid_orig_archive Is this a valid orig source archive
Class Changelog Container for changelog related policy settings
Class ChangelogEntryFormatter Helper class for generating changelog entries from git commits

Inherited from PkgPolicy:

Class Method is_valid_packagename Is this a valid package name?
Class Method is_valid_upstreamversion Is this a valid upstream version number?
Static Method guess_upstream_src_version Guess the package name and version from the filename of an upstream archive.
Static Method has_origs Check orig tarball and additional tarballs exists in dir
Class Method has_orig Undocumented
Static Method symlink_origs symlink orig tarball from orig_dir to output_dir @return: [] if all links were created, list of failed links otherwise
Class Method symlink_orig Undocumented
@classmethod
def is_valid_orig_archive(cls, filename):

Is this a valid orig source archive

Parametersfilenameupstream source archive filename (type: str)
Returnstrue if valid upstream source archive filename (type: 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
)
API Documentation for git-buildpackage, generated by pydoctor at 2017-12-29 19:17:01.