? 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.117
diff -u -p -r1.117 pm.drush.inc
--- commands/pm/pm.drush.inc	21 Jul 2010 18:30:27 -0000	1.117
+++ commands/pm/pm.drush.inc	31 Jul 2010 22:33:26 -0000
@@ -1366,6 +1366,20 @@ function drush_pm_download() {
             drush_log(dt("Project !project (!version) downloaded to !dest.", array('!project' => $request['name'], '!version' => $release['version'], '!dest' => $project['full_project_path'])), 'success');
             drush_command_invoke_all('drush_pm_post_download', $project, $release);
             $version_control->post_download($project);
+            // Find all of the .info files in the destination directory
+            $modules_in_project = array();
+            foreach(drush_scan_directory($project['full_project_path'], "/.*\.info$/", array('.', '..', 'CVS'), 0, TRUE, 'filename') as $filename => $info) {
+              $modules_in_project[] = basename($filename, ".info");
+            }
+            // If there is only one module / theme in the project, only print out
+            // the message if the module / theme name is different than the project name.
+            if ((count($modules_in_project) == 1) && ($modules_in_project[0] != $request['name'])) {
+              drush_log(dt("Project !project contains a !type named !module.", array('!project' => $request['name'], '!type' => $project['project_type'], '!module' => $modules_in_project[0])), 'success');
+            }
+            // If there are mulitple modules or themes in the project, list them all.
+            elseif (count($modules_in_project) > 1) {
+              drush_log(dt("Project !project contains !count !type: !modules.", array('!project' => $request['name'], '!count' => count($modules_in_project), '!type' => $project['project_type'] . 's',  '!modules' => implode(', ', $modules_in_project))), 'success');
+            }
           }
         }
       }
