Index: drupalorg_testing.profile =================================================================== RCS file: /cvs/drupal-contrib/contributions/profiles/drupalorg_testing/drupalorg_testing.profile,v retrieving revision 1.48 diff -u -F^f -u -p -r1.48 drupalorg_testing.profile --- drupalorg_testing.profile 16 Mar 2009 03:23:30 -0000 1.48 +++ drupalorg_testing.profile 17 Mar 2009 21:05:42 -0000 @@ -982,17 +982,14 @@ function _drupalorg_testing_create_conte // created earlier in this function. if (!empty($release['file_path']) && $directory_created_successfully && touch($release['file_path'], $release['file_date'])) { drupal_set_message(t('A file for the release titled %title was created at %full_path.', array('%title' => $release['title'], '%full_path' => $release['file_path']))); - - // Manually put file and version info into db since drupal_execute() - // doesn't seem to add this information. We only want to add this - // file information if creation of the empty file is successful, - // because otherwise viewing a release node will create PHP errors. - db_query("UPDATE {project_release_nodes} SET file_path = '%s', file_date = %d, file_hash = '%s', rebuild = %d, version_major = %d, version_minor = %d, version_patch = %d, version_extra = '%s' WHERE nid = %d", $release['file_path'], $release['file_date'], $release['file_hash'], $release['rebuild'], $release['major'], $release['minor'], $release['patch'], $release['extra'], $node->nid); - } - else { - // We still want the version information to be saved to the database, - // just not any file information. - db_query("UPDATE {project_release_nodes} SET rebuild = %d, version_major = %d, version_minor = %d, version_patch = %d, version_extra = '%s' WHERE nid = %d", $release['rebuild'], $release['major'], $release['minor'], $release['patch'], $release['extra'], $node->nid); + // The form altering code for CVS module removes the 'file' form field, + // so it's not properly put into $form_values for the save step, and + // there's really no clean way to get the values to the current save + // function without refactoring. So for now, just stuff the correct + // values back in via a database query. + // TODO: this should go away in 6.x with a refactoring of the saving + // code for project releases. + db_query("UPDATE {project_release_nodes} SET file_path = '%s', file_date = %d, file_hash = '%s' WHERE nid = %d", $release['file_path'], $release['file_date'], $release['file_hash'], $node->nid); } } @@ -1052,7 +1049,7 @@ function _drupalorg_testing_create_menus ); // Now, move the children of /project we want back to the navigation menu, - // which is hard-coded in menu.inc to be menu id #1. + // which is hard-coded in menu.inc to be menu id #1. $items['project/issues'] = array( 'path' => 'project/issues', 'title' => t('Issues'), Index: drupalorg_testing_build_release_info.php =================================================================== RCS file: /cvs/drupal-contrib/contributions/profiles/drupalorg_testing/drupalorg_testing_build_release_info.php,v retrieving revision 1.1 diff -u -F^f -u -p -r1.1 drupalorg_testing_build_release_info.php --- drupalorg_testing_build_release_info.php 12 Oct 2008 15:45:23 -0000 1.1 +++ drupalorg_testing_build_release_info.php 17 Mar 2009 21:05:42 -0000 @@ -103,9 +103,10 @@ function dot_get_releases($project, $api 'title' => (string) $value->name, 'version' => (string) $value->version, 'project_uri' => $project, - 'major' => (int) $value->version_major, - 'patch' => (int) $value->version_patch, - 'extra' => (string) $value->version_extra, + 'version_major' => (int) $value->version_major, + 'version_minor' => isset($value->version_minor) ? (int) $value->version_minor : NULL, + 'version_patch' => (int) $value->version_patch, + 'version_extra' => (string) $value->version_extra, 'categories' => get_categories($api_term, $value->terms), 'tag' => (string) $value->tag, 'rebuild' => (string) $value->version_extra == 'dev' ? 1 : 0, @@ -168,7 +169,8 @@ function get_categories($api_term, $term */ function get_file_header() { $output = "