repoman.common.sources package

Submodules

repoman.common.sources.copr module

Usage:

https?://${copr_host}/*

Handles copr build urls

class repoman.common.sources.copr.CoprURLSource(config, stores)[source]

Bases: repoman.common.sources.ArtifactSource

Usage:

https?://${copr_host}/*

Handles copr build urls

CONFIG_SECTION = 'CoprURLSource'
DEFAULT_CONFIG = {'copr_host_re': 'copr\\.fedorainfracloud\\.org'}
expand(source_str)[source]
classmethod formats_list()[source]

repoman.common.sources.dir module

Usage:

dir_path
file_path
dir:repo_name

Will find all the matching artifacts under the specified dir or the given file. If relative path passed, it will be relative to the base_repos_path config value

Configuration values:

  • allowed_dir_paths
    Comma separated list of paths or empty string. If set, will not allow using any path/dir/repo from outside of those paths.
class repoman.common.sources.dir.DirSource(config, stores)[source]

Bases: repoman.common.sources.ArtifactSource

Usage:

dir_path
file_path
dir:repo_name

Will find all the matching artifacts under the specified dir or the given file. If relative path passed, it will be relative to the base_repos_path config value

Configuration values:

  • allowed_dir_paths
    Comma separated list of paths or empty string. If set, will not allow using any path/dir/repo from outside of those paths.
CONFIG_SECTION = 'DirSource'
DEFAULT_CONFIG = {'allowed_dir_paths': ''}
check_if_allowed(path)[source]
expand(source_str)[source]
classmethod formats_list()[source]
static is_allowed(path, allowed_paths)[source]
resolve_path(path)[source]

repoman.common.sources.jenkins module

Allows you to define a jenkins build job url as a source:

  • If it’s a build -> the artifacts archived on that build
  • If it’s a job -> the artifacts from the last successful build
  • If it’s a multiconfig build -> the artifacts from all the configs
For example::
repoman myrepo add
http://jenkins.ovirt.org/jobs/lago_master_build-artifacts-el7-x86_64

will get the latest successful build artifacts for that job.

Keep in mind that if the url does not match the regexp in the config, you can still force repoman to use this source prepending the url with ‘jenkins:’, like this:

repoman myrepo add \
    jenkins:http://some.strange.url/to/my_job
class repoman.common.sources.jenkins.JenkinsSource(config, stores)[source]

Bases: repoman.common.sources.ArtifactSource

Allows you to define a jenkins build job url as a source:

  • If it’s a build -> the artifacts archived on that build
  • If it’s a job -> the artifacts from the last successful build
  • If it’s a multiconfig build -> the artifacts from all the configs
For example::
repoman myrepo add
http://jenkins.ovirt.org/jobs/lago_master_build-artifacts-el7-x86_64

will get the latest successful build artifacts for that job.

Keep in mind that if the url does not match the regexp in the config, you can still force repoman to use this source prepending the url with ‘jenkins:’, like this:

repoman myrepo add \
    jenkins:http://some.strange.url/to/my_job
CONFIG_SECTION = 'JenkinsSource'
DEFAULT_CONFIG = {'jenkins_host_re': 'jenkins\\.ovirt\\.org'}
expand(source_str)[source]
classmethod formats_list()[source]

repoman.common.sources.kojibuild module

Usage:

koji:name@tag
koji:@tag[@inherit]
koji:name-version-release

Handles koji builds

class repoman.common.sources.kojibuild.KojiBuildSource(config, stores)[source]

Bases: repoman.common.sources.ArtifactSource

Usage:

koji:name@tag
koji:@tag[@inherit]
koji:name-version-release

Handles koji builds

CONFIG_SECTION = 'KojiBuildSource'
DEFAULT_CONFIG = {'koji_extra_opts': 'krbservice=host', 'koji_topurl': 'https://kojipkgs.fedoraproject.org/', 'koji_server': 'https://koji.fedoraproject.org/kojihub', 'koji_skip_unavailable': 'true'}
expand(source_str)[source]
classmethod formats_list()[source]

repoman.common.sources.kojiurl module

Usage:

https?://${koji_host}/*

Handles koji build urls

TODO: Improve the second level detections (now filtering buildArch and
buildSRPM links only)
class repoman.common.sources.kojiurl.KojiURLSource(config, stores)[source]

Bases: repoman.common.sources.ArtifactSource

Usage:

https?://${koji_host}/*

Handles koji build urls

TODO: Improve the second level detections (now filtering buildArch and
buildSRPM links only)
CONFIG_SECTION = 'KojiURLSource'
DEFAULT_CONFIG = {'koji_host_re': 'koji\\.fedoraproject\\.org'}
expand(source_str)[source]
classmethod formats_list()[source]

repoman.common.sources.url module

Parse a url, recursively or not.

Usage:

URL -> Will parse the url and get all the packages in that page
rec:URL -> Will parse the urls recursively
class repoman.common.sources.url.URLSource(config, stores)[source]

Bases: repoman.common.sources.ArtifactSource

Parse a url, recursively or not.

Usage:

URL -> Will parse the url and get all the packages in that page
rec:URL -> Will parse the urls recursively
CONFIG_SECTION = 'URLSource'
DEFAULT_CONFIG = {}
expand(source_str)[source]
expand_page(page_url)[source]
expand_recursive(page_url, level=0)[source]
classmethod formats_list()[source]
static strip_qs(url)[source]