]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/pkgcachegen.cc
fix arguments for MarkInstall so packages are really marked as automatic
[apt.git] / apt-pkg / pkgcachegen.cc
index ae031fee4641f7279f3c36ce8ed95a3d511f504f..46dd220073fc6015f50b3420f3f511fd39a7f5ca 100644 (file)
@@ -638,10 +638,10 @@ bool pkgCacheGenerator::FinishCache(OpProgress *Progress)
                - MultiArch: same → Co-Installable if they have the same version
                - Architecture: all → Need to be Co-Installable for internal reasons
                - All others conflict with all other group members */
-              bool const coInstall = (V->MultiArch == pkgCache::Version::Same);
+              bool const coInstall = ((V->MultiArch & pkgCache::Version::Same) == pkgCache::Version::Same);
               for (vector<string>::const_iterator A = archs.begin(); A != archs.end(); ++A)
               {
-                 if (*A == Arch)
+                 if (Arch == 0 || *A == Arch)
                     continue;
                  /* We allow only one installed arch at the time
                     per group, therefore each group member conflicts