summaryrefslogtreecommitdiff
path: root/cmdline/apt-get.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-06-29 06:11:36 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-06-29 06:11:36 +0000
commit0a57c0f0e4d0bc3474ce4d2101f36a997891d30d (patch)
treedc4aadd2882cbb27291e16af181cc562257d2b78 /cmdline/apt-get.cc
parent254ce4b0cc0336de5a9b46c693673ef68d5628b6 (diff)
* use mark-and-sweep from aptitude now as GC algorithm
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r--cmdline/apt-get.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 0236d7e77..9d97f8756 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -1374,12 +1374,11 @@ bool DoAutomaticRemove(CacheFile &Cache)
// look over the cache to see what can be removed
for (pkgCache::PkgIterator Pkg = Cache->PkgBegin(); ! Pkg.end(); ++Pkg)
{
- if (! Cache[Pkg].Dirty() &&
+ if (Cache[Pkg].Garbage &&
(Pkg->CurrentVer != 0 && Cache[Pkg].Install() == false &&
Cache[Pkg].Delete() == false))
{
- fprintf(stdout,"We could delete %s %d\n",
- Pkg.Name(), Cache[Pkg].AutomaticRemove);
+ fprintf(stdout,"We could delete %s\n", Pkg.Name());
Cache->MarkDelete(Pkg,_config->FindB("APT::Get::Purge",false));
}
}