]> git.saurik.com Git - apt.git/commitdiff
* cmdline/apt-get.cc:
authorDavid Kalnischkies <kalnischkies@gmail.com>
Mon, 7 Mar 2011 21:19:19 +0000 (22:19 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Mon, 7 Mar 2011 21:19:19 +0000 (22:19 +0100)
  - reinstall dependencies of reinstalled "garbage" (Closes: #617257)

cmdline/apt-get.cc
debian/changelog

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;
index c012023ffe8289c1f359221c1e41ae47637370b0..da4e04c4b70f1ec7e2fdb3eabe0a00665fdfaa2a 100644 (file)
@@ -24,8 +24,10 @@ apt (0.8.11.6) UNRELEASED; urgency=low
     - remove ExtractArchive codecopy from apt-inst/deb/debfile.cc
   * apt-inst/deb/debfile.cc:
     - support data.tar's compressed with any configured compressor
+  * cmdline/apt-get.cc:
+    - reinstall dependencies of reinstalled "garbage" (Closes: #617257)
 
- -- David Kalnischkies <kalnischkies@gmail.com>  Mon, 28 Feb 2011 00:19:55 +0100
+ -- David Kalnischkies <kalnischkies@gmail.com>  Mon, 07 Mar 2011 22:16:54 +0100
 
 apt (0.8.11.5) unstable; urgency=low