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 -r1.48 drupalorg_testing.profile
--- drupalorg_testing.profile	16 Mar 2009 03:23:30 -0000	1.48
+++ drupalorg_testing.profile	17 Mar 2009 01:30:27 -0000
@@ -982,17 +982,6 @@ 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);
       }
     }
 
@@ -1052,7 +1041,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'),
@@ -1142,3 +1131,26 @@ function _drupalorg_testing_configure_fi
   }
   return TRUE;
 }
+
+/**
+ * Local override for cvs_alter_project_release_form().
+ *
+ * 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.  This is a
+ * hack around that so the data shows up properly there.
+ */
+function cvs_local_alter_project_release_form(&$form) {
+  $form['file_path'] = array(
+    '#type' => 'value',
+    '#value' => $form['file']['file_path']['#default_value'],
+  );
+  $form['file_date'] = array(
+    '#type' => 'value',
+    '#value' => $form['file']['file_date']['#default_value'],
+  );
+  $form['file_hash'] = array(
+    '#type' => 'value',
+    '#value' => $form['file']['file_hash']['#default_value'],
+  );
+  return;
+}
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 -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 01:30:27 -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,7 @@ function get_categories($api_term, $term
  */
 function get_file_header() {
   $output = "<?php\n";
-  $output .= '// $Id: drupalorg_testing_build_release_info.php,v 1.1 2008/10/12 15:45:23 aclight Exp $'."\n\n";
+  $output .= '// $Id: $'."\n\n";
   $output .= '// Generated with: '. basename(__FILE__) ."\n";
   $output .= '// Generated on: '. date('r') ."\n\n";
   $file_phpdoc = <<<EOF
