]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/depcache.cc
merged from debian-sid
[apt.git] / apt-pkg / depcache.cc
index 4c12a4fe1f878769f03e999a97077e6729f0a2fb..a8bf4d3aee09a6cd7c3a66ba5e42fe70cbe40cc7 100644 (file)
@@ -1261,9 +1261,8 @@ void pkgDepCache::MarkInstall(PkgIterator const &Pkg,bool AutoInst,
 
    if(FromUser)
      {
-       // Set it to manual if it's a new install or cancelling the
-       // removal of a garbage package.
-       if(P.Status == 2 || (!Pkg.CurrentVer().end() && !P.Marked))
+       // Set it to manual if it's a new install or already installed
+       if(P.Status == 2 || Pkg->CurrentVer != 0)
         P.Flags &= ~Flag::Auto;
      }
    else