diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-12-18 12:06:54 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-12-18 12:06:54 +0100 |
commit | 3dc863efa5f825a16b46ccba0771e86895459c77 (patch) | |
tree | 5b43451521c0bc67d5031efc886ba88e649e6c3d /apt-pkg/depcache.cc | |
parent | 6a30946d00371ff1fb7f94791364706a4bac0ea2 (diff) | |
parent | c9b320e8c7c37b47aac3c8af6be990c4cded04c9 (diff) |
* merged from apt--auto-mark
Diffstat (limited to 'apt-pkg/depcache.cc')
-rw-r--r-- | apt-pkg/depcache.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index 87443f9f3..81e1eeb33 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -1324,6 +1324,11 @@ bool pkgDepCache::Sweep() { StateCache &state=PkgState[p->ID]; + // skip required packages + if (!p.CurrentVer().end() && + (p.CurrentVer()->Priority == pkgCache::State::Required)) + continue; + // if it is not marked and it is installed, it's garbage if(!state.Marked && (!p.CurrentVer().end() || state.Install())) { |