Index: pift.cron.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue_file_test/pift.cron.inc,v
retrieving revision 1.42
diff -u -r1.42 pift.cron.inc
--- pift.cron.inc	16 Nov 2009 23:45:08 -0000	1.42
+++ pift.cron.inc	18 Nov 2009 03:50:29 -0000
@@ -282,8 +282,14 @@
     else {
       // Load the Drupal core API release (branch) compatible with this branch.
       $api_release = node_load(pift_core_api_release($api_tid));
-      $item['dependency'] = $api_release->nid;
-      $item['plugin_argument']['modules'] = array(); // TODO Include the list of modules.
+      $dependencies = project_info_dependency_list_get($branch->nid);
+      $item['dependency'] = array($api_release->nid);
+      foreach ($dependencies as $dependency) {
+        $item['dependency'][$dependency['rid']] = $dependency['rid'];
+      }
+      unset($item['dependency'][$branch->nid]); // Ensure that not depending on self.
+      $item['dependency'] = implode(',', $item['dependency']);
+      $item['plugin_argument']['modules'] = array_keys(project_info_module_list_get($branch->nid));
 
       // If the core branch has not already been added then add it.
       if (!isset($branches[$api_release])) {
Index: pift.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue_file_test/pift.info,v
retrieving revision 1.5
diff -u -r1.5 pift.info
--- pift.info	14 Apr 2009 02:29:50 -0000	1.5
+++ pift.info	18 Nov 2009 03:50:29 -0000
@@ -10,6 +10,7 @@
 files[] = pift.project.inc
 files[] = pift.test.inc
 dependencies[] = project
+dependencies[] = project_info
 dependencies[] = project_issue
 dependencies[] = project_release
 dependencies[] = cvs
