|
|
@@ -1,6 +1,6 @@
|
|
|
// -*- mode: cpp; mode: fold -*-
|
|
|
// Description /*{{{*/
|
|
|
-// $Id: policy.cc,v 1.3 2001/03/03 23:27:24 jgg Exp $
|
|
|
+// $Id: policy.cc,v 1.4 2001/03/05 02:43:28 jgg Exp $
|
|
|
/* ######################################################################
|
|
|
|
|
|
Package Version Policy implementation
|
|
|
@@ -145,12 +145,7 @@ pkgCache::VerIterator pkgPolicy::GetCandidateVer(pkgCache::PkgIterator Pkg)
|
|
|
pin that stays at that setting.
|
|
|
*/
|
|
|
for (pkgCache::VerIterator Ver = Pkg.VersionList(); Ver.end() == false; Ver++)
|
|
|
- {
|
|
|
- /* This is a side effect of the condition below, and is added for
|
|
|
- completeness, though it should not be necessary */
|
|
|
- if (Ver->Arch == 0)
|
|
|
- continue;
|
|
|
-
|
|
|
+ {
|
|
|
for (pkgCache::VerFileIterator VF = Ver.FileList(); VF.end() == false; VF++)
|
|
|
{
|
|
|
/* If this is the status file, and the current version is not the
|