Fix foreign upgrade after removal

This commit is contained in:
Kivi Kaitaniemi
2026-02-07 20:26:36 +02:00
parent c5898d82a3
commit 4203d2d439
@@ -245,7 +245,11 @@ def test_apply_respects_ignored_packages_and_protects_their_dependencies(
assert "ignored-aur" not in (fake_pm.remove_called_with or set()) assert "ignored-aur" not in (fake_pm.remove_called_with or set())
# Upgrade called with flags and ignored set # Upgrade called with flags and ignored set
assert fake_fpm.upgrade_args == (True, True, aur.ignored_packages) assert fake_fpm.upgrade_args == (
True,
True,
aur.ignored_packages | (fake_pm.remove_called_with or set()),
)
# to_install = (packages | custom_names) - installed_foreign - ignored # to_install = (packages | custom_names) - installed_foreign - ignored
# = {"desired-aur", "custom-aur"} - {"ignored-aur", "dep-of-ignored", "orphan-foreign"} # = {"desired-aur", "custom-aur"} - {"ignored-aur", "dep-of-ignored", "orphan-foreign"}