summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-09-20 14:21:23 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-09-20 14:21:23 +0200
commit87da74517a0defa3450d0f3d8c3275f6963d0f5e (patch)
treec0942b1f9d47dea332ae07d0e5fd8152e7ebfde2 /apt-pkg
parent81ce578199d8fa83283fc6b1e759acafaee7fbf0 (diff)
* apt-pkg/algorithms.cc:
- if a package is garbage, don't try to save it with FixByInstall
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/algorithms.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc
index 2fca0f6af..4c2ea0f2d 100644
--- a/apt-pkg/algorithms.cc
+++ b/apt-pkg/algorithms.cc
@@ -1035,7 +1035,7 @@ bool pkgProblemResolver::ResolveInternal(bool const BrokenFix)
if (BrokenFix == false || DoUpgrade(I) == false)
{
// Consider other options
- if (InOr == false)
+ if (InOr == false || Cache[I].Garbage == true)
{
if (Debug == true)
clog << " Removing " << I.FullName(false) << " rather than change " << Start.TargetPkg().FullName(false) << endl;