pungi/pungi/phases
Lubomír Sedlář a435fd58da gather: Add all srpms to variant lookaside repo
The original code could cause a source RPM to be present in two variants
that have a dependency relation.

There is always only one source repo for a variant in the final compose.
When gathering packages for a variant that depends on another variant,
we need to build a temporary lookaside repo that has similar content to
the parent variant. This lookaside only contained source RPMs for
packages present the the architecture.

This could result in duplicated SRPMs in the compose.

Example situation:

 * Variant B depends on variant A.
 * A contains foo.x86_64.rpm (only on x86_64)
 * B pulls in subpackage foo-bar.s390x.rpm (on s390x)

Source repo for A will correctly contain foo.src.rpm. With original code
the srpm would also end up in B.src. By adding all sources to the
temporary lookaside Pungi will know that source repo for B doesn't need
to duplicate the package.

The refactoring to use a set to store the packages is meant to avoid
listing the same SRPM multiple times in the repo in the most common
situation when SRPM is listed in multiple architectures.

JIRA: RHELCMP-6002
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2021-07-19 14:12:44 +02:00
..
gather gather: Add all srpms to variant lookaside repo 2021-07-19 14:12:44 +02:00
pkgset Log warning when module defined in variants.xml not found 2021-06-25 14:55:23 +08:00
__init__.py Add image-container phase 2021-02-09 14:47:57 +01:00
base.py Format code base with black 2020-02-05 17:35:47 +08:00
buildinstall.py Updated the deprecated ks argument name (to the current inst.ks) 2021-04-21 21:04:01 +03:00
createiso.py Cancel koji tasks when pungi terminated 2021-03-23 14:47:48 +08:00
createrepo.py createrepo: Ignore error when cleaning up tmp dir 2020-09-01 18:27:00 +08:00
extra_files.py Format code base with black 2020-02-05 17:35:47 +08:00
extra_isos.py Use xorrisofs for creating ISOs when needed 2020-11-20 09:47:49 +08:00
image_build.py Cancel koji tasks when pungi terminated 2021-03-23 14:47:48 +08:00
image_checksum.py Format code base with black 2020-02-05 17:35:47 +08:00
image_container.py Cancel koji tasks when pungi terminated 2021-03-23 14:47:48 +08:00
init.py Stop copying .git directory with module defaults 2021-01-14 10:36:38 +08:00
live_images.py Cancel koji tasks when pungi terminated 2021-03-23 14:47:48 +08:00
livemedia_phase.py Cancel koji tasks when pungi terminated 2021-03-23 14:47:48 +08:00
osbs.py Cancel koji tasks when pungi terminated 2021-03-23 14:47:48 +08:00
osbuild.py Cancel koji tasks when pungi terminated 2021-03-23 14:47:48 +08:00
ostree.py Allow using Pungi Koji plugin for ostree phases. 2020-05-26 13:23:58 +00:00
ostree_installer.py Retry ostree installer task on losetup error 2020-08-05 10:58:04 +02:00
phases_metadata.py Format code base with black 2020-02-05 17:35:47 +08:00
repoclosure.py Delete outdated comments 2020-04-22 17:14:51 +08:00
test.py Split repoclosure into separate phase 2020-04-14 09:25:57 +08:00
weaver.py Format code base with black 2020-02-05 17:35:47 +08:00