gather: Print full unresolved dependency

We should not lose the flag and version. The name is not sufficient to
fully determine the problem.

The log information printed in `pungi/gather.py` is parsed by regex in
`pungi/wrappers/pungi.py`. It handles the dependency with spaces and
versions fine.

JIRA: COMPOSE-2880
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2018-08-24 08:36:56 +02:00
parent 9278008ba0
commit a5fa4457c3
1 changed files with 4 additions and 1 deletions

View File

@ -631,7 +631,10 @@ class Pungi(PungiBase):
deps = self.ayum.whatProvides(r, f, v).returnPackages()
deps = self.excludePackages(deps)
if not deps:
self.logger.warn("Unresolvable dependency %s in %s.%s" % (r, po.name, po.arch))
self.logger.warn(
"Unresolvable dependency %s in %s.%s"
% (Req(req), po.name, po.arch)
)
continue
if self.greedy_method == "all":