pungi/pungi
Lubomír Sedlář bcc440491e gather-dnf: Run latest() later
The initial version of the filtered the latest builds at the start. That
doesn't matter in many cases:

* When there are no lookaside repos, there is generally a single version
  of each package.
* When lookaside repos do not overlap with compose repos, or contain
  only older versions.

It is however a problem when the lookaside repos contain higher version
of a package than what is in a compose repo, and some package explicitly
requires the older version.

Consider this scenario:

* lookaside contains bar-1.1
* compose repo contains bar-1.0 and foo-1.0
* foo-1.0 `Requires: bar < 1.1`

The original code would filter out the bar-1.0 package, and then fail on
unresolved dependencies.

This patch moves the computation of latest packages much later, to part
of code where all options to satisfy a dependency are selected and the
best match is chosen. At that point if there are multiple versions
available, we do want the latest one.

JIRA: SPMM-13483
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2023-06-06 12:48:36 +00:00
..
compose_metadata Format code base with black 2020-02-05 17:35:47 +08:00
ostree ostree: Add unified core mode for compose in rpm-ostree 2022-08-23 10:52:45 +02:00
phases Fix compatibility with createrepo_c 0.21.1 2023-04-25 10:25:19 +00:00
scripts Drop pungi-orchestrator code 2023-06-02 06:14:10 +00:00
wrappers comps: Apply arch filtering to environment/optionlist 2023-04-24 08:29:15 +02:00
__init__.py Format code base with black 2020-02-05 17:35:47 +08:00
arch.py Format code base with black 2020-02-05 17:35:47 +08:00
arch_utils.py Format code 2021-03-02 18:31:45 +08:00
checks.py Add back compatibility with jsonschema <3.0.0 2023-05-31 07:29:51 +00:00
common.py Format code base with black 2020-02-05 17:35:47 +08:00
compose.py Pass parent id/respin id to CTS 2023-03-14 10:51:34 +01:00
config.py Format code base with black 2020-02-05 17:35:47 +08:00
createiso.py iso: Support joliet long names 2023-06-05 15:30:18 +02:00
dnf_wrapper.py Format code base with black 2020-02-05 17:35:47 +08:00
errors.py Move UnsignedPackagesError to a separate file 2021-02-08 10:16:32 +00:00
gather.py Fix black complaints 2023-02-02 12:53:32 +01:00
gather_dnf.py gather-dnf: Run latest() later 2023-06-06 12:48:36 +00:00
graph.py Format code 2021-03-02 18:31:45 +08:00
ks.py Format code base with black 2020-02-05 17:35:47 +08:00
linker.py Hardlink or copy scratch builds always 2020-08-07 18:00:19 +08:00
media_split.py Fix black complaint 2022-08-10 09:04:41 +02:00
metadata.py Remove useless debug message 2023-05-30 15:46:17 +02:00
module_util.py Fix module defaults and obsoletes validation 2022-06-10 11:35:26 +00:00
multilib_dnf.py Format code base with black 2020-02-05 17:35:47 +08:00
multilib_yum.py Format code base with black 2020-02-05 17:35:47 +08:00
notifier.py Fix the wrong working directory for the progress_notification script 2022-03-01 11:25:06 +00:00
pathmatch.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
paths.py Add module obsoletes feature 2022-01-12 12:51:37 +01:00
profiler.py profiler: Flush stdout before printing 2022-08-29 05:57:14 +00:00
runroot.py Convert _ssh_run output to str for python3 2022-07-15 13:45:15 +08:00
util.py Print more logs for git_ls_remote 2022-07-14 11:11:01 +08:00