? 659210.patch
Index: drush_make.generate.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush_make/Attic/drush_make.generate.inc,v
retrieving revision 1.1.2.6
diff -u -r1.1.2.6 drush_make.generate.inc
--- drush_make.generate.inc	29 Nov 2009 21:51:12 -0000	1.1.2.6
+++ drush_make.generate.inc	3 Apr 2010 08:56:50 -0000
@@ -28,29 +28,21 @@
     }
   }
 
-  // Re-build theme data to be sure we have the most current information.
-  if (function_exists('system_theme_data')) {
-    system_theme_data();
-  }
-  $modules = drush_get_modules();
-  $themes = _system_theme_data();
-  foreach (array('module', 'theme') as $type) {
-    $variable = $type . 's';
-    foreach ($$variable as $item) {
-      $name = $item->name;
-      if ($item->info['project'] != 'drupal' && $item->info['project'] == $name) {
-        if ($type == 'module' && !$item->status) {
-          continue;
-        }
-        $updatexml = _drush_generate_makefile_updatexml($name, $type, $item->info);
-        $projects[$name] = array('_type' => $type);
-        if ($updatexml) {
-          $projects[$name]['type'] = $type;
-          $projects[$name]['custom_download'] = TRUE;
-        }
-        $projects[$name] += _drush_generate_makefile_check_location($name, $type);
-      }
+  // Re-build theme and module data to be sure we have the most current information.
+  $project_info = drush_get_projects();
+  foreach ($project_info as $item) {
+    if (($item->type == 'module') && (!$item->status)) {
+      continue;
+    }
+    $name = $item->name;
+    $type = $item->type;
+    $updatexml = _drush_generate_makefile_updatexml($name, $type, $item->info);
+    $projects[$name] = array('_type' => $type);
+    if ($updatexml) {
+      $projects[$name]['type'] = $type;
+      $projects[$name]['custom_download'] = TRUE;
     }
+    $projects[$name] += _drush_generate_makefile_check_location($name, $type);
   }
 
   if (function_exists('libraries_get_libraries')) {
