Jguer / yay

Yet another Yogurt - An AUR Helper written in Go
GNU General Public License v3.0
11.23k stars 364 forks source link

Skipping a package update also wrongly excludes dependent package #2518

Open drws opened 1 month ago

drws commented 1 month ago

Affected Version

yay v12.4.2 - libalpm v15.0.0

Describe the bug

Encountered the issue with a current situation in the AUR. The python-rtmixer package has had build issues for some time. Recently, another package that depends on it (friture) was updated. The dependency is not version-bound.

If python-rtmixer is skipped in an upgrade transaction, friture apparently also gets excluded - unnecessarily. Building and updating it can also be tried with an older version of a dependency. Yay could print a warning in such a case though.

Reproduction Steps

  1. yay -Syu
  2. Skip a (non-version-bound) dependency update
  3. A dependent package also gets excluded

Expected behavior

The dependent package(s) to be updated even if a dependency is not. (Unless of course the dependent package is also explicitly excluded/skipped.)