pungi/pungi/phases/gather
Lubomír Sedlář b80efbfd97 hybrid: Refactor handling debuginfo packages
Behavior before this change: debuginfo was added based on source RPMs.
Pungi would get all debuginfo for all architectures that include at
least one binary package. This had a consequence that if foo-x.x86_64
and foo-x.i686 from the same built were included, foo-y-debuginfo.i686
would be included despite foo-y only being present for x86_64.

The patch changes this to work on binary package level: for each
included package `x`, check if there is `x-debuginfo` or
`x-debugsource`, and include them. Packages added in this way have to go
through one iteration of the solver, to account for cases such as
`x-libs-debuginfo` depending on `x-debuginfo` (with only `x` starting
this chain).

To make it slightly faster, the invocation of fus is changed to only
process newly added package in each iteration. It should have no effect
on the results, and subsequent iterations are much faster if they don't
process the same stuff again and again.

JIRA: COMPOSE-3247
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2019-03-18 13:56:48 +01:00
..
methods hybrid: Refactor handling debuginfo packages 2019-03-18 13:56:48 +01:00
sources Return RPMs added to -devel module in GatherSourceModule. 2019-02-08 14:24:16 +01:00
__init__.py gather: Link files in order for dependant variants 2019-02-04 08:24:22 +01:00
link.py linker: Simplify creating pool 2018-10-03 10:27:56 +02:00
method.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
source.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00