cvs diff: Diffing modules/update
Index: modules/update/update.api.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/update/update.api.php,v
retrieving revision 1.1
diff -u -p -r1.1 update.api.php
--- modules/update/update.api.php	25 Nov 2008 02:37:33 -0000	1.1
+++ modules/update/update.api.php	27 Apr 2009 10:28:06 -0000
@@ -12,6 +12,18 @@
  */
 
 /**
+ * Alter the list of projects before fetching data and comparing versions.
+ *
+ * @param $projects
+ *   Reference to an array of the projects installed on the system.
+ *
+ * @see update_get_projects()
+ */
+function hook_update_projects_alter(&$projects) {
+  _update_process_info_list($projects, my_custom_module_list(), 'module');
+}
+
+/**
  * Alter the information about available updates for projects.
  *
  * @param $projects
Index: modules/update/update.compare.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/update/update.compare.inc,v
retrieving revision 1.16
diff -u -p -r1.16 update.compare.inc
--- modules/update/update.compare.inc	22 Feb 2009 17:55:30 -0000	1.16
+++ modules/update/update.compare.inc	27 Apr 2009 10:28:07 -0000
@@ -29,6 +29,8 @@ function update_get_projects() {
       // Still empty, so we have to rebuild the cache.
       _update_process_info_list($projects, module_rebuild_cache(), 'module');
       _update_process_info_list($projects, system_theme_data(), 'theme');
+      // Allow other modules to alter projects before fetching and comparing.
+      drupal_alter('update_projects', $projects);
       // Set the projects array into the cache table.
       cache_set('update_project_projects', $projects, 'cache_update', REQUEST_TIME + 3600);
     }
Index: modules/update/update.fetch.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/update/update.fetch.inc,v
retrieving revision 1.16
diff -u -p -r1.16 update.fetch.inc
--- modules/update/update.fetch.inc	14 Mar 2009 23:01:37 -0000	1.16
+++ modules/update/update.fetch.inc	27 Apr 2009 10:28:07 -0000
@@ -84,7 +84,7 @@ function _update_build_fetch_url($projec
   $name = $project['name'];
   $url = $project['info']['project status url'];
   $url .= '/' . $name . '/' . DRUPAL_CORE_COMPATIBILITY;
-  if (!empty($site_key)) {
+  if (!empty($site_key) && (strpos($project['project_type'], 'disabled') === FALSE)) {
     $url .= (strpos($url, '?') === TRUE) ? '&' : '?';
     $url .= 'site_key=';
     $url .= drupal_urlencode($site_key);
