]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/orderlist.cc
enable Hashes::AddFD() to skip creation of certain hashes
[apt.git] / apt-pkg / orderlist.cc
index ba43bc7572cde5057b70848b42032e2b1f8cdea1..19661fc2dfb7fc151b6e458d90620aeb3f6b2278 100644 (file)
@@ -1073,6 +1073,12 @@ bool pkgOrderList::CheckDep(DepIterator D)
          just needs one */
       if (D.IsNegative() == false)
       {
+        // ignore provides by older versions of this package
+        if (((D.Reverse() == false && Pkg == D.ParentPkg()) ||
+             (D.Reverse() == true && Pkg == D.TargetPkg())) &&
+            Cache[Pkg].InstallVer != *I)
+           continue;
+
         /* Try to find something that does not have the after flag set
            if at all possible */
         if (IsFlag(Pkg,After) == true)