? drush-950928.patch
? drush-dl-no-tests.patch
? includes/table.inc
Index: commands/pm/pm.drush.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/commands/pm/pm.drush.inc,v
retrieving revision 1.130
diff -u -r1.130 pm.drush.inc
--- commands/pm/pm.drush.inc	12 Oct 2010 14:00:25 -0000	1.130
+++ commands/pm/pm.drush.inc	26 Oct 2010 21:15:09 -0000
@@ -1694,11 +1694,14 @@
  * It does nothing with translation or theme engine projects.
  */
 function drush_pm_projects_in_project($project) {
+  // Mask for drush_scan_directory, to  avoid tests directories.
+  $nomask = array('.', '..', 'tests');
+
   // Drupal core and profiles can contain modules, themes and profiles.
   if (in_array($project['project_type'], array('core', 'profile'))) {
     $found = array('profile' => array(), 'theme' => array(), 'module' => array());
     // Find all of the .info files
-    foreach (drush_scan_directory($project['project_install_location'], "/.*\.info$/") as $filename => $info) {
+    foreach (drush_scan_directory($project['project_install_location'], "/.*\.info$/", $nomask) as $filename => $info) {
       // Find the project type corresponding the .info file.
      // (Only drupal >=7.x has .info for .profile)
       $base = dirname($filename) . '/' . $info->name;
@@ -1714,7 +1717,7 @@
     }
     // Special case: find profiles for drupal < 7.x (no .info)
     if ($project['drupal_version'][0] < 7) {
-      foreach (drush_scan_directory($project['project_install_location'], "/.*\.profile$/") as $filename => $info) {
+      foreach (drush_scan_directory($project['project_install_location'], "/.*\.profile$/", $nomask) as $filename => $info) {
         $found['profile'][] = $info->name;
       }
     }
@@ -1737,7 +1740,7 @@
   elseif (in_array($project['project_type'], array('module', 'theme'))) {
     // Find all of the .info files
     $found = array();
-    foreach (drush_scan_directory($project['project_install_location'], "/.*\.info$/") as $filename => $info) {
+    foreach (drush_scan_directory($project['project_install_location'], "/.*\.info$/", $nomask) as $filename => $info) {
       $found[] = $info->name;
     }
     // Log results.
