From bd64bb79537fac17e1474672402d6b0572dce94a Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 8 Jan 2021 14:43:21 +0100 Subject: Phase using source version to be binNMU-correct If we have different binNMU versions on different architectures, we don't want madness to ensue. This is a change from how update-manager does things, as Ubuntu does not have binNMUs, but I believe it's the right thing to do for a generic solution. --- apt-pkg/policy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc index bdb049ead..39879f754 100644 --- a/apt-pkg/policy.cc +++ b/apt-pkg/policy.cc @@ -301,7 +301,7 @@ static inline bool ExcludePhased(std::string machineID, pkgCache::VerIterator co || APT::Configuration::isChroot()) return false; - std::string seedStr = std::string(Ver.SourcePkgName()) + "-" + Ver.VerStr() + "-" + machineID; + std::string seedStr = std::string(Ver.SourcePkgName()) + "-" + Ver.SourceVerStr() + "-" + machineID; std::seed_seq seed(seedStr.begin(), seedStr.end()); std::minstd_rand rand(seed); std::uniform_int_distribution dist(0, 100); -- cgit v1.2.3-18-g5258