repoman.common.filters package

Submodules

repoman.common.filters.latest module

Usage:

source:latest
source:latest=N

Get’s the latest N rpms (1 by default)

class repoman.common.filters.latest.LatestFilter(config, stores)[source]

Bases: repoman.common.filters.ArtifactFilter

Usage:

source:latest
source:latest=N

Get’s the latest N rpms (1 by default)

CONFIG_SECTION = 'LatestFilter'
DEFAULT_CONFIG = {}
filter(filters_str, art_list)[source]

Filters the given art_list according to filter_str and config

Parameters:
  • filter_str – string with the filter or filters to apply
  • art_list – list of expanded artifacts

repoman.common.filters.name module

Usage:

source:name~regexp

Filter packges by file name, for example:

http://myhost.com/packages/:name~vdsm.*

Will match all the packages in that url that have vdsm.* as name (will not match any previous path in the url)

class repoman.common.filters.name.NameFilter(config, stores)[source]

Bases: repoman.common.filters.ArtifactFilter

Usage:

source:name~regexp

Filter packges by file name, for example:

http://myhost.com/packages/:name~vdsm.*

Will match all the packages in that url that have vdsm.* as name (will not match any previous path in the url)

CONFIG_SECTION = 'NameFilter'
DEFAULT_CONFIG = {}
filter(filters_str, art_list)[source]

Filters the given art_list according to filter_str and config

Parameters:
  • filter_str – string with the filter or filters to apply
  • art_list – list of expanded artifacts

repoman.common.filters.only_missing module

Usage:

source:only-missing

Gets only the artifacts that are not already there, getting only the ones that don’t have already an artifact with the same name in the repo.

It will take only the latest from the source repo if there are multiple versions available

class repoman.common.filters.only_missing.OnlyMissingFilter(config, stores)[source]

Bases: repoman.common.filters.ArtifactFilter

Usage:

source:only-missing

Gets only the artifacts that are not already there, getting only the ones that don’t have already an artifact with the same name in the repo.

It will take only the latest from the source repo if there are multiple versions available

CONFIG_SECTION = 'OnlyMissingFilter'
DEFAULT_CONFIG = {}
filter(filters_str, art_list)[source]

Filters the given art_list according to filter_str and config

Parameters:
  • filter_str – string with the filter or filters to apply
  • art_list – list of expanded artifacts