Closed rmarquis closed 10 years ago
Interesting: after -Sw, the pacaur package actually appears in the pacman -Qdt list, because the install reason is now set "Installed as a dependency for another package". The new orphan code works actually correctly, it only made this underlying bug more visible.
This bug has been introduced in 779d2a724b4a852b611172ef053e71331f623004 in October 2011(!).
Obviously, the reason seems the AUR deps are set to '--deps' so they could be removed automatically when using -w, similarly to binary dependencies when using makepkg -sr. They are compiled and installed in the first place to ensure the main package can be compiled, but it seems I never took into account situations when older versions of the AUR dependencies have already been installed on the system in an explicit manner.
Possible fix: when using -w, check if the package is already installed before setting up the install reason, or don't set up the reason manually at all if not required.
Fixed in a939640678dd4539a5de5a6be26a88f1c5f8c846. Setting the install reason manually seems useless.
Reported on the AUR page: