From 49e80c2d9061372e0ec697be43bcba4c451b7752 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 23 Jan 2026 12:03:04 +0100 Subject: variants: Do not report unsupported variants in repositories We configure all variants the CPU supports as active, but repositories usually do not provide all of them, so let's not be noisy. --- apt-pkg/acquire-item.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apt-pkg/acquire-item.cc') diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 84f61b8bf..8bd77c052 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -1703,8 +1703,9 @@ void pkgAcqMetaClearSig::QueueIndexes(bool const verify) /*{{{*/ if (TransactionManager->MetaIndexParser->IsArchitectureSupported(arch) == false) { new CleanupItem(Owner, TransactionManager, Target); - _error->Notice(_("Skipping acquire of configured file '%s' as repository '%s' doesn't support architecture '%s'"), - Target.MetaKey.c_str(), TransactionManager->Target.Description.c_str(), arch.c_str()); + if (not std::ranges::contains(APT::Configuration::getArchitectureVariants(true), arch, [](auto v) { return v.name; })) + _error->Notice(_("Skipping acquire of configured file '%s' as repository '%s' doesn't support architecture '%s'"), + Target.MetaKey.c_str(), TransactionManager->Target.Description.c_str(), arch.c_str()); continue; } // if the architecture is officially supported but currently no packages for it available, -- cgit v1.2.3-70-g09d2