]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-get.cc
* cmdline/apt-get.cc:
[apt.git] / cmdline / apt-get.cc
index bc2f71c18231df76ebc805f8f805d0e4d764c40b..c0983b06d63a6ef0aed56f1fd4679ea754ad0228 100644 (file)
@@ -1718,7 +1718,7 @@ bool DoAutomaticRemove(CacheFile &Cache)
                   R->Type != pkgCache::Dep::PreDepends)
                  continue;
               pkgCache::PkgIterator N = R.ParentPkg();
-              if (N.end() == true || N->CurrentVer == 0)
+              if (N.end() == true || (N->CurrentVer == 0 && (*Cache)[N].Install() == false))
                  continue;
               if (Debug == true)
                  std::clog << "Save " << P << " as another installed garbage package depends on it" << std::endl;