]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/edsp.cc
do not discard new manual-bits while applying EDSP solutions
[apt.git] / apt-pkg / edsp.cc
index 225d86de0a873e66d8f2ab631d5a91f250ac5937..90f20472e255100caf2063ed77010fb076da4983 100644 (file)
@@ -343,7 +343,11 @@ bool EDSP::ReadResponse(int const input, pkgDepCache &Cache, OpProgress *Progres
                pkgCache::VerIterator Ver(Cache.GetCache(), Cache.GetCache().VerP + VerIdx[id]);
                Cache.SetCandidateVersion(Ver);
                if (type == "Install")
-                       Cache.MarkInstall(Ver.ParentPkg(), false, 0, false);
+               {
+                       pkgCache::PkgIterator const P = Ver.ParentPkg();
+                       if (Cache[P].Mode != pkgDepCache::ModeInstall)
+                               Cache.MarkInstall(P, false, 0, false);
+               }
                else if (type == "Remove")
                        Cache.MarkDelete(Ver.ParentPkg(), false);
                else if (type == "Autoremove") {