]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/depcache.cc
Fix multiarch package upgrade issue
[apt.git] / apt-pkg / depcache.cc
index f9c891c86d2bd4290bf3875eb2563ca5437a408e..a3bb4fd3da4b9ebae86ebc1d14c455610ee1113b 100644 (file)
@@ -1253,6 +1253,11 @@ bool pkgDepCache::MarkInstall(PkgIterator const &Pkg,bool AutoInst,
            if (PkgState[Pkg->ID].InstallVer == 0)
               continue;
 
+            /* Ignore negative dependencies that we are not going to 
+               get installed */
+            if (PkgState[Pkg->ID].InstallVer != *I)
+               continue;
+
            if ((Start->Version != 0 || TrgPkg != Pkg) &&
                PkgState[Pkg->ID].CandidateVer != PkgState[Pkg->ID].InstallVer &&
                PkgState[Pkg->ID].CandidateVer != *I &&