Created
February 2, 2011 21:23
-
-
Save boombatower/808471 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- drush_make.download.inc.orig 2010-11-21 15:25:50.000000000 -0800 | |
+++ drush_make.download.inc 2011-01-14 14:00:35.046868916 -0800 | |
@@ -2,6 +2,14 @@ | |
// $Id: drush_make.download.inc,v 1.1.2.99 2010/11/21 23:25:50 dmitrig01 Exp $ | |
function drush_make_download_factory($name, $download, $download_location) { | |
+ static $done; | |
+ $type = $download['type']; | |
+ $done[$name][] = $type; | |
+ if ((count($done[$name]) > 1 && $name != 'awssdk') || (count($done[$name]) > 2 && $name == 'awssdk')) { | |
+ drush_log(dt('Attempt to download project %name more than once (%types) prevented', | |
+ array('%name' => $name, '%types' => join(", ", $done[$name]))), 'warning'); | |
+ return FALSE; | |
+ } | |
$function = 'drush_make_download_' . $download['type']; | |
if (function_exists($function)) { | |
return $function($name, $download, $download_location); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment