? includes/table.inc
Index: commands/pm/package_handler/cvs.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/commands/pm/package_handler/cvs.inc,v
retrieving revision 1.4
diff -u -p -r1.4 cvs.inc
--- commands/pm/package_handler/cvs.inc	3 Sep 2009 11:55:00 -0000	1.4
+++ commands/pm/package_handler/cvs.inc	7 Oct 2009 20:23:34 -0000
@@ -13,6 +13,9 @@
  * @param $path The path to install the module to.
  */
 function package_handler_install_project($project, $info, $path = '.') {
+  // Save working directory
+  $oldcwd = getcwd();
+
   drush_op('chdir', $path);
 
   drush_log("Downloading project $project ...");
@@ -22,6 +25,9 @@ function package_handler_install_project
   // Check it out.
   drush_pm_cvs_checkout($project, $info, $cvsparams);
 
+  // Return to working directory
+  drush_op('chdir', $oldcwd);
+
   if (is_dir($path . $project) && !drush_get_context('DRUSH_SIMULATE')) {
     drush_log("Checking out " . $project . " was successful.");
     return TRUE;
@@ -40,6 +46,9 @@ function package_handler_install_project
  * @param $path The path to install the module to.
  */
 function package_handler_update_project($project, $info, $path = '.') {
+  // Save working directory
+  $oldcwd = getcwd();
+
   drush_op('chdir', $path);
 
   drush_log("Updating project $project ...");
@@ -69,6 +78,9 @@ function package_handler_update_project(
     drush_pm_cvs_checkout($project, $info, $cvsparams);
   }
 
+  // Return to working directory
+  drush_op('chdir', $oldcwd);
+
   if (is_dir($path . $project) && !drush_get_context('DRUSH_SIMULATE')) {
     drush_log("Updating out " . $project . " was successful.");
     return TRUE;
