summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-03-07 22:19:19 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-03-07 22:19:19 +0100
commitbd15e63f52786ed2332976f16d67de3ef59dfbed (patch)
treef63af81bd33ce8bc19387777c0cc43b9dd989d07 /cmdline
parent7296f1e6e65ae1926e4bbee3acb52a285e376a3a (diff)
* cmdline/apt-get.cc:
- reinstall dependencies of reinstalled "garbage" (Closes: #617257)
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index bc2f71c18..c0983b06d 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -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;