Verified Commit c6ad5264 authored by Karel Koci's avatar Karel Koci 🤘
Browse files

lib/autoload/postprocess: do not consider provides of same name

This warns and ignores provides for packages of same name. The reason is
that otherwise we would add copy of package candidates to list of
candidates making it appear twice. The result together with dependency
resolution is that this candidate would conflict with itself and
couldn't be installed at all with updater.
parent 8084e063
Pipeline #56308 passed with stages
in 4 minutes and 7 seconds
......@@ -316,7 +316,11 @@ function pkg_aggregate()
if not available_packages[p] then
available_packages[p] = {candidates = {}, modifiers = {}}
table.insert(available_packages[p].candidates, candidate)
if p == name then
WARN("Package provides itself, ignoring: " .. name)
table.insert(available_packages[p].candidates, candidate)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment