gather: Better detection of debuginfo in lookaside
If the depsolver wants to include a package that is present in both the source repo and a lookaside repo, it reliably detects binary packages present in lookaside, but for debuginfo it's not so reliable. There is a separate package object for each package in each repo. Depending on which one is used, debuginfo could be included in the result or not. This patch fixes that by actually looking if the same package is present in any lookaside repo. JIRA: RHELCMP-9373 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
8c06b7a3f1
commit
a4476f2570
@ -783,7 +783,6 @@ class Gather(GatherBase):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
debug_pkgs = []
|
debug_pkgs = []
|
||||||
pkg_in_lookaside = pkg.repoid in self.opts.lookaside_repos
|
|
||||||
for i in candidates:
|
for i in candidates:
|
||||||
if pkg.arch != i.arch:
|
if pkg.arch != i.arch:
|
||||||
continue
|
continue
|
||||||
@ -791,7 +790,7 @@ class Gather(GatherBase):
|
|||||||
# If it's not debugsource package or does not match name of
|
# If it's not debugsource package or does not match name of
|
||||||
# the package, we don't want it in.
|
# the package, we don't want it in.
|
||||||
continue
|
continue
|
||||||
if i.repoid in self.opts.lookaside_repos or pkg_in_lookaside:
|
if self.is_from_lookaside(i):
|
||||||
self._set_flag(i, PkgFlag.lookaside)
|
self._set_flag(i, PkgFlag.lookaside)
|
||||||
if i not in self.result_debug_packages:
|
if i not in self.result_debug_packages:
|
||||||
added.add(i)
|
added.add(i)
|
||||||
|
Loading…
Reference in New Issue
Block a user