]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/depcache.cc
if multi-arch is detected ensure that pkg:all is reported as pkg:all
[apt.git] / apt-pkg / depcache.cc
index 031fca5c0dda3930100d8f5d6706e709f552d41b..0851597111cff81a8cb7ba9ee59075a26d53c162 100644 (file)
@@ -371,14 +371,11 @@ bool pkgDepCache::CheckDep(DepIterator Dep,int Type,PkgIterator &Res)
    
    // Check the providing packages
    PrvIterator P = Dep.TargetPkg().ProvidesList();
-   PkgIterator Pkg = Dep.ParentPkg();
    for (; P.end() != true; ++P)
    {
-      /* Provides may never be applied against the same package (or group)
-         if it is a conflicts. See the comment above. */
-      if (P.OwnerPkg()->Group == Pkg->Group && Dep.IsNegative() == true)
+      if (Dep.IsIgnorable(P) == true)
         continue;
-      
+
       // Check if the provides is a hit
       if (Type == NowVersion)
       {