Index: drush_make.download.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush_make/Attic/drush_make.download.inc,v
retrieving revision 1.1.2.36
diff -u -p -r1.1.2.36 drush_make.download.inc
--- drush_make.download.inc	13 Jun 2010 19:52:56 -0000	1.1.2.36
+++ drush_make.download.inc	14 Jun 2010 03:15:53 -0000
@@ -91,12 +91,18 @@ class DrushMakeDownload_Get extends Drus
     drush_shell_exec('tar -tf %s', $filename);
     $info = drush_shell_exec_output();
     if ($info) {
-      list($first_line) = drush_shell_exec_output();
-      list($directory) = explode('/', $first_line);
-      drush_make_cd($this->project->tmp_path, 'tar -xf %s', $filename);
-      drush_op('unlink', $filename);
-
-      return $directory;
+      $lines = drush_shell_exec_output();
+      foreach ($lines as $line) {
+        if (strpos($line, '/') !== FALSE) {
+          list($directory) = explode('/', $line);
+          break;
+        }
+      }
+      if (!empty($directory)) {
+        drush_make_cd($this->project->tmp_path, 'tar -xf %s', $filename);
+        drush_op('unlink', $filename);
+        return $directory;
+      }
     }
 
     drush_make_error('PACKAGE_ERROR', dt('Could not retrieve package information for %filename.', array('%filename' => $filename)));
