From 74636b64a7ee56637a3ce4ddc1d060ca9f8b77e1 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sat, 25 Oct 2025 21:24:10 +0200 Subject: depcache: Allow changing multi-arch versions for removed siblings Do not prevent us from changing the version of a foreign package because a sibling that is being removed has a different candidate. --- apt-pkg/depcache.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apt-pkg/depcache.cc') diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index f7f508f85..09d7a93bc 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -1853,6 +1853,10 @@ bool pkgDepCache::IsInstallOkMultiArchSameVersionSynced(PkgIterator const &Pkg, if (CV.Downloadable() == false) continue; + // Ignore siblings marked for deletion + if (PkgState[P->ID].Delete()) + continue; + PkgState[Pkg->ID].iFlags |= AutoKept; if (unlikely(DebugMarker == true)) std::clog << OutputInDepth(Depth) << "Ignore MarkInstall of " << APT::PrettyPkg(this, Pkg) -- cgit v1.2.3-70-g09d2