"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "apt-pkg/policy.cc" between
apt-2.2.3.tar.gz and apt-2.2.4.tar.gz

About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.

policy.cc  (apt-2.2.3):policy.cc  (apt-2.2.4)
skipping to change at line 313 skipping to change at line 313
std::string seedStr = std::string(Ver.SourcePkgName()) + "-" + Ver.SourceVerS tr() + "-" + machineID; std::string seedStr = std::string(Ver.SourcePkgName()) + "-" + Ver.SourceVerS tr() + "-" + machineID;
std::seed_seq seed(seedStr.begin(), seedStr.end()); std::seed_seq seed(seedStr.begin(), seedStr.end());
std::minstd_rand rand(seed); std::minstd_rand rand(seed);
std::uniform_int_distribution<unsigned int> dist(0, 100); std::uniform_int_distribution<unsigned int> dist(0, 100);
return dist(rand) > Ver.PhasedUpdatePercentage(); return dist(rand) > Ver.PhasedUpdatePercentage();
} }
APT_PURE signed short pkgPolicy::GetPriority(pkgCache::VerIterator const &Ver, b ool ConsiderFiles) APT_PURE signed short pkgPolicy::GetPriority(pkgCache::VerIterator const &Ver, b ool ConsiderFiles)
{ {
if (Ver.ParentPkg()->CurrentVer && Ver.PhasedUpdatePercentage() != 100) if (Ver.PhasedUpdatePercentage() != 100)
{ {
if (ExcludePhased(d->machineID, Ver)) if (ExcludePhased(d->machineID, Ver))
return 1; return 1;
} }
if (VerPins[Ver->ID].Type != pkgVersionMatch::None) if (VerPins[Ver->ID].Type != pkgVersionMatch::None)
{ {
// If all sources are never pins, the never pin wins. // If all sources are never pins, the never pin wins.
if (VerPins[Ver->ID].Priority == NEVER_PIN) if (VerPins[Ver->ID].Priority == NEVER_PIN)
return NEVER_PIN; return NEVER_PIN;
for (pkgCache::VerFileIterator file = Ver.FileList(); file.end() == false; file++) for (pkgCache::VerFileIterator file = Ver.FileList(); file.end() == false; file++)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)