From bd15e63f52786ed2332976f16d67de3ef59dfbed Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Mon, 7 Mar 2011 22:19:19 +0100 Subject: * cmdline/apt-get.cc: - reinstall dependencies of reinstalled "garbage" (Closes: #617257) --- cmdline/apt-get.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmdline') 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; -- cgit v1.2.3-70-g09d2