diff options
| author | Julian Andres Klode <jak@debian.org> | 2026-01-23 12:03:04 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2026-01-23 12:04:31 +0100 |
| commit | 49e80c2d9061372e0ec697be43bcba4c451b7752 (patch) | |
| tree | d1ed8a012a19bffb4f84f30cfe1404b1a8d312da /apt-pkg/acquire-item.cc | |
| parent | 9cb74f8992db1d21b091147ca3791531b3c43a73 (diff) | |
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.
Diffstat (limited to 'apt-pkg/acquire-item.cc')
| -rw-r--r-- | apt-pkg/acquire-item.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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, |
