diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2021-01-08 14:43:21 +0100 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2021-01-08 14:48:47 +0100 |
commit | bd64bb79537fac17e1474672402d6b0572dce94a (patch) | |
tree | 9fb90d98cb20bb0be193a63efc7c32b513408bad | |
parent | c5bc86d45e003905ef411146e66b414d26fb1ff8 (diff) |
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.
-rw-r--r-- | apt-pkg/policy.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<unsigned int> dist(0, 100); |