[Aptitude-svn-commit] r3838 - in branches/aptitude-0.3/aptitude: . src/generic

Daniel Burrows dburrows at costa.debian.org
Mon Aug 15 18:26:33 UTC 2005


Author: dburrows
Date: Mon Aug 15 18:26:31 2005
New Revision: 3838

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/generic/aptitude_resolver_universe.h
Log:
Make all critical deps and all recommends interesting.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Mon Aug 15 18:26:31 2005
@@ -1,3 +1,9 @@
+2005-08-15  Daniel Burrows  <dburrows at debian.org>
+
+	* src/generic/aptitude_resolver_universe.h:
+
+	  Make all critical deps and all recommends interesting.
+
 2005-08-15 Miroslav Kure <kurem at upcase.inf.upol.cz>
 
 	* General Czech translation update

Modified: branches/aptitude-0.3/aptitude/src/generic/aptitude_resolver_universe.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/generic/aptitude_resolver_universe.h	(original)
+++ branches/aptitude-0.3/aptitude/src/generic/aptitude_resolver_universe.h	Mon Aug 15 18:26:31 2005
@@ -35,7 +35,8 @@
 // rather awkward to put it there right now.
 inline bool aptitude_universe_is_interesting_dep(const pkgCache::DepIterator &d)
 {
-  return (*apt_cache_file)->IsImportantDep(d);
+  return const_cast<pkgCache::DepIterator &>(d).IsCritical() ||
+    d->Type == pkgCache::Dep::Recommends;
 }
 
 /** Wraps a PkgIterator for the resolver. */



More information about the Aptitude-svn-commit mailing list