--- 231640_dot_generate_releases_17.patch.1 2008-10-12 00:22:56.000000000 -0500 +++ 231640_dot_generate_releases_18.patch 2008-10-12 10:31:57.000000000 -0500 @@ -1,10 +1,12 @@ -Index: drupalorg_testing.profile +? 231640_dot_generate_releases_17.patch +? 231640_dot_generate_releases_18.patch +Index: /Applications/MAMP/htdocs/dot/drupal/profiles/drupalorg_testing/drupalorg_testing.profile =================================================================== RCS file: /cvs/drupal-contrib/contributions/profiles/drupalorg_testing/drupalorg_testing.profile,v retrieving revision 1.44 -diff -u -p -u -p -r1.44 drupalorg_testing.profile +diff -u -p -r1.44 drupalorg_testing.profile --- drupalorg_testing.profile 31 Jul 2008 01:54:25 -0000 1.44 -+++ drupalorg_testing.profile 12 Oct 2008 05:08:38 -0000 ++++ drupalorg_testing.profile 12 Oct 2008 15:31:45 -0000 @@ -588,6 +588,7 @@ function _drupalorg_testing_create_conte devel_generate_content(100, 200, 8, TRUE, array('page', 'story', 'forum')); @@ -18,8 +20,8 @@ diff -u -p -u -p -r1.44 drupalorg_testin /** * Generates sample project content. + * -+ * NOTE: If you add other projects here that have releases, you should -+ * update the $projects array near the top of ++ * NOTE: If you add other projects here that might ever have releases, ++ * you should update the $projects array near the top of + * drupalorg_testing_build_releases.php. */ function _drupalorg_testing_create_content_project() { @@ -53,9 +55,9 @@ diff -u -p -u -p -r1.44 drupalorg_testin + $directory_created_successfully = file_check_directory($directory, FILE_CREATE_DIRECTORY); + } + -+ $file = drupal_get_path('profile', 'drupalorg_testing') .'/drupalorg_testing_releases.inc'; ++ $file = drupal_get_path('profile', 'drupalorg_testing') .'/drupalorg_testing_release_info.inc'; + if (file_exists($file)) { -+ // Note: Including the drupalorg_testing_releases.inc file gives us the ++ // Note: Including the drupalorg_testing_release_info.inc file gives us the + // $releases and $supported_releases variables used below in this block of code. + require_once($file); + @@ -152,13 +154,13 @@ diff -u -p -u -p -r1.44 drupalorg_testin * Setup menus to match drupal.org. */ function _drupalorg_testing_create_menus() { -Index: drupalorg_testing_build_releases.php +Index: /Applications/MAMP/htdocs/dot/drupal/profiles/drupalorg_testing/drupalorg_testing_build_release_info.php =================================================================== -RCS file: drupalorg_testing_build_releases.php -diff -N drupalorg_testing_build_releases.php +RCS file: drupalorg_testing_build_release_info.php +diff -N drupalorg_testing_build_release_info.php --- /dev/null 1 Jan 1970 00:00:00 -0000 -+++ drupalorg_testing_build_releases.php 12 Oct 2008 05:08:39 -0000 -@@ -0,0 +1,189 @@ ++++ drupalorg_testing_build_release_info.php 12 Oct 2008 15:31:45 -0000 +@@ -0,0 +1,190 @@ + $value) { -+ if (is_numeric($key)) { -+ $value = (array)$value; -+ $all_terms[] = $value['value']; -+ } -+ elseif ($key == 'value') { -+ if (!empty($value)) { -+ $all_terms[] = $value; ++ if (isset($terms['term'])) { ++ $terms = (array)$terms['term']; ++ foreach ($terms as $key => $value) { ++ if (is_numeric($key)) { ++ $value = (array)$value; ++ $all_terms[] = $value['value']; ++ } ++ elseif ($key == 'value') { ++ if (!empty($value)) { ++ $all_terms[] = $value; ++ } + } + } + } -+ + return $all_terms; +} + +/** -+ * Returns the text that goes at the top of drupalorg_testing_releases.inc. ++ * Returns the text that goes at the top of drupalorg_testing_release_info.inc. + */ +function get_file_header() { + $output = " @@ -3168,7 +3171,7 @@ diff -N drupalorg_testing_releases.inc + + +/** -+ * Array of information about supported branches ++ * Array of information about supported branches. + */ +$supported_releases = array ( + 'drupal' => @@ -3412,3 +3415,5 @@ diff -N drupalorg_testing_releases.inc + ), + ), +); ++// End of file. +\ No newline at end of file