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

Daniel Burrows dburrows at costa.debian.org
Wed Aug 31 04:13:51 UTC 2005


Author: dburrows
Date: Wed Aug 31 04:13:50 2005
New Revision: 4007

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/main.cc
Log:
Add a command that just boots up the apt cache and then exits.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Wed Aug 31 04:13:50 2005
@@ -1,5 +1,10 @@
 2005-08-30  Daniel Burrows  <dburrows at debian.org>
 
+	* src/main.cc:
+
+	  Add a "nop" command, which might or might not be useful for
+	  profiling the startup activities.
+
 	* src/generic/setset.h:
 
 	  Also use a hash table to represent the intermediate map object

Modified: branches/aptitude-0.3/aptitude/src/main.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/main.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/main.cc	Wed Aug 31 04:13:50 2005
@@ -430,6 +430,21 @@
 	      usage();
 	      exit(0);
 	    }
+	  // Debugging/profiling commands:
+	  else if(!strcasecmp(argv[optind], "nop"))
+	    {
+	      OpTextProgress p;
+	      _error->DumpErrors();
+	      apt_init(&p, true);
+	      exit(0);
+	    }
+	  else if(!strcasecmp(argv[optind], "nop-noselections"))
+	    {
+	      OpTextProgress p;
+	      _error->DumpErrors();
+	      apt_init(&p, false);
+	      exit(0);
+	    }
 	  else
 	    {
 	      fprintf(stderr, _("Unknown command \"%s\"\n"), argv[optind]);



More information about the Aptitude-svn-commit mailing list