X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/359e46db58b85497fd232fbe912b8a62e77079c5..a6c8798a6390b5c3a0775f8914e1cff2795e4cc1:/apt-pkg/orderlist.cc?ds=inline diff --git a/apt-pkg/orderlist.cc b/apt-pkg/orderlist.cc index ba43bc757..a17a70112 100644 --- a/apt-pkg/orderlist.cc +++ b/apt-pkg/orderlist.cc @@ -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)