gather: Report missing comps packages

When a package mentioned in comps is not available in the package set,
print a warning about this. Additionally there is a config option that
allows to turn this warning into a fatal error.

Fixes: https://pagure.io/pungi/issue/50
Fixes: https://pagure.io/pungi/issue/683
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2017-08-03 13:28:34 +02:00
parent 1d7617f783
commit cef8650c3e
4 changed files with 28 additions and 0 deletions

View file

@ -627,6 +627,11 @@ Options
(*bool*) -- Set to ``False`` if you don't want the compose to abort when
some package has broken dependencies.
**require_all_comps_packages** = False
(*bool*) -- Set to ``True`` to abort compose when package mentioned in
comps file can not be found in the package set. When disabled (the default,
such cases are still reported as warnings in the log.
**gather_source_mapping**
(*str*) -- Only use when ``gather_source = "json"``. The value should be a
path to JSON file with following mapping: ``{variant: {arch: {rpm_name: