[Aptitude-svn-commit] r3779 - in branches/aptitude-0.3/aptitude: . doc/en src/generic

Daniel Burrows dburrows at costa.debian.org
Tue Aug 9 01:59:13 UTC 2005


Author: dburrows
Date: Tue Aug  9 01:59:09 2005
New Revision: 3779

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/doc/en/aptitude.xml
   branches/aptitude-0.3/aptitude/src/generic/matchers.cc
Log:
Support ~adowngrade.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Tue Aug  9 01:59:09 2005
@@ -1,5 +1,9 @@
 2005-08-08  Daniel Burrows  <dburrows at debian.org>
 
+	* src/generic/matchers.cc, doc/en/aptitude.xml:
+
+	  Add a "downgrade" action for use with ~a.
+
 	* Makefile.am:
 
 	  Distribute README.SMART-POINTERS.

Modified: branches/aptitude-0.3/aptitude/doc/en/aptitude.xml
==============================================================================
--- branches/aptitude-0.3/aptitude/doc/en/aptitude.xml	(original)
+++ branches/aptitude-0.3/aptitude/doc/en/aptitude.xml	Tue Aug  9 01:59:09 2005
@@ -3395,11 +3395,12 @@
 
 	  <listitem>
 	    <para>
-	      Matches packages on which the given
+	      Matches packages upon which the given
 	      <replaceable>action</replaceable> is going to be
 	      performed.  <replaceable>action</replaceable> can be
 	      <quote><literal>install</literal></quote>,
 	      <quote><literal>upgrade</literal></quote>,
+	      <quote><literal>downgrade</literal></quote>,
 	      <quote><literal>remove</literal></quote>,
 	      <quote><literal>purge</literal></quote>,
 	      <quote><literal>hold</literal></quote> (tests whether a

Modified: branches/aptitude-0.3/aptitude/src/generic/matchers.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/generic/matchers.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/generic/matchers.cc	Tue Aug  9 01:59:09 2005
@@ -1828,6 +1828,9 @@
 			else if(!strcasecmp(substr.c_str(), "upgrade"))
 			  return new pkg_action_matcher(pkg_upgrade, false);
 
+			else if(!strcasecmp(substr.c_str(), "downgrade"))
+			  return new pkg_action_matcher(pkg_downgrade, false);
+
 			// Match packages to be removed OR purged
 			else if(!strcasecmp(substr.c_str(), "remove"))
 			  return new pkg_action_matcher(pkg_remove, false);



More information about the Aptitude-svn-commit mailing list