? .drush_make.project.inc.swp
? .drush_make.utilities.inc.swp
Index: drush_make.project.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush_make/Attic/drush_make.project.inc,v
retrieving revision 1.1.2.16
diff -u -r1.1.2.16 drush_make.project.inc
--- drush_make.project.inc	26 Nov 2009 06:55:00 -0000	1.1.2.16
+++ drush_make.project.inc	27 Nov 2009 17:41:43 -0000
@@ -114,15 +114,15 @@
   }
 
   function recurse($path, $directory) {
-    $makefiles = drush_scan_directory($this->path . '/' . $directory, '/\.make$/');
-    if (!empty($makefiles)) {
+    $makefile = $this->path . '/' . $directory . '/' . $this->name . '.make';
+
+    if (file_exists($makefile)) {
+      drush_log(dt("Found makefile : %makefile", array("%makefile" => basename($makefile))), 'ok');
       $build_path = $this->base_install_path;
-      foreach ($makefiles as $file) {
-        $info  = $this->queue->addItem('drush_make_parse_info_file', $file->filename);
-        $valid = $this->queue->addItem('drush_make_validate_info_file', array(), $info);
-        $this->queue->addItem('drush_make_add_projects', array(TRUE, trim($build_path, '/'), $this->tmp_path, $this->base_path), array($valid));
-        $this->queue->addItem('drush_make_add_libraries', array(trim($build_path, '/'), $this->tmp_path, $this->base_path), array($valid));
-      }
+      $info  = $this->queue->addItem('drush_make_parse_info_file', $makefile);
+      $valid = $this->queue->addItem('drush_make_validate_info_file', array(), $info);
+      $this->queue->addItem('drush_make_add_projects', array(TRUE, trim($build_path, '/'), $this->tmp_path, $this->base_path), array($valid));
+      $this->queue->addItem('drush_make_add_libraries', array(trim($build_path, '/'), $this->tmp_path, $this->base_path), array($valid));
     }
   }
 }
@@ -187,15 +187,15 @@
   }
 
   function recurse($path, $directory) {
-    $makefiles = drush_scan_directory($this->path . '/' . $directory, '/\.make$/');
-    if (!empty($makefiles)) {
+    $makefile = $this->path . '/' . $directory . '/' . $this->name . '.make';
+
+    if (file_exists($makefile)) {
+      drush_log(dt("Found makefile : %makefile", array("%makefile" => basename($makefile))), 'ok');
       $build_path = $this->generatePath(FALSE) . '/' . $directory;
-      foreach ($makefiles as $file) {
-        $info  = $this->queue->addItem('drush_make_parse_info_file', $file->filename);
-        $valid = $this->queue->addItem('drush_make_validate_info_file', array(), $info);
-        $this->queue->addItem('drush_make_add_projects', array(TRUE, trim($build_path, '/'), $this->tmp_path, $this->base_path), array($valid));
-        $this->queue->addItem('drush_make_add_libraries', array(trim($build_path, '/'), $this->tmp_path, $this->base_path), array($valid));
-      }
+      $info  = $this->queue->addItem('drush_make_parse_info_file', $makefile);
+      $valid = $this->queue->addItem('drush_make_validate_info_file', array(), $info);
+      $this->queue->addItem('drush_make_add_projects', array(TRUE, trim($build_path, '/'), $this->tmp_path, $this->base_path), array($valid));
+      $this->queue->addItem('drush_make_add_libraries', array(trim($build_path, '/'), $this->tmp_path, $this->base_path), array($valid));
     }
   }
 }
