Clean up sunshine-bin-debug too when falling back to source build
When sunshine-bin trips the ldd check and we switch to the source build, the prior install left sunshine-bin-debug behind. The source package includes its own sunshine-debug which collides on /usr/lib/debug/usr/bin/sunshine.debug, so pacman refuses the install. Remove both sunshine-bin and sunshine-bin-debug before yay -S sunshine. uninstall.sh similarly drops all four variants.
This commit is contained in:
@@ -42,7 +42,8 @@ if loginctl show-user "$USER" -p Linger --value 2>/dev/null | grep -qx yes; then
|
||||
fi
|
||||
|
||||
step "Removing packages"
|
||||
for pkg in sunshine sunshine-bin; do
|
||||
# Remove -debug siblings first so they don't collide with re-installation later.
|
||||
for pkg in sunshine-debug sunshine-bin-debug sunshine sunshine-bin; do
|
||||
if pacman -Qi "$pkg" >/dev/null 2>&1; then
|
||||
as_root pacman -Rns --noconfirm "$pkg"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user