Support require_all_comps_packages on DNF backend
It's not a great name anymore though, because it will fail the compose if any input package is missing, no matter whether it's from comps, prepopulate or additional_packages. JIRA: RHELCMP-12484 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
fe2dad3b3c
commit
1c4275bbfa
@ -941,6 +941,10 @@ Options
|
|||||||
comps file can not be found in the package set. When disabled (the
|
comps file can not be found in the package set. When disabled (the
|
||||||
default), such cases are still reported as warnings in the log.
|
default), such cases are still reported as warnings in the log.
|
||||||
|
|
||||||
|
With ``dnf`` gather backend, this option will abort the compose on any
|
||||||
|
missing package no matter if it's listed in comps, ``additional_packages``
|
||||||
|
or prepopulate file.
|
||||||
|
|
||||||
**gather_source_mapping**
|
**gather_source_mapping**
|
||||||
(*str*) -- JSON mapping with initial packages for the compose. The value
|
(*str*) -- JSON mapping with initial packages for the compose. The value
|
||||||
should be a path to JSON file with following mapping: ``{variant: {arch:
|
should be a path to JSON file with following mapping: ``{variant: {arch:
|
||||||
|
@ -542,7 +542,9 @@ class Gather(GatherBase):
|
|||||||
pkgs = self.q_binary_packages.filter(**kwargs).apply()
|
pkgs = self.q_binary_packages.filter(**kwargs).apply()
|
||||||
|
|
||||||
if not pkgs:
|
if not pkgs:
|
||||||
self.logger.error("No package matches pattern %s" % pattern)
|
self.logger.error(
|
||||||
|
"Could not find a match for %s in any configured repo", pattern
|
||||||
|
)
|
||||||
|
|
||||||
# The pattern could have been a glob. In that case we want to
|
# The pattern could have been a glob. In that case we want to
|
||||||
# group the packages by name and get best match in those
|
# group the packages by name and get best match in those
|
||||||
|
Loading…
Reference in New Issue
Block a user