? dif
cvs diff: Diffing .
Index: cvs_deploy.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cvs_deploy/cvs_deploy.module,v
retrieving revision 1.20.2.1
diff -u -p -r1.20.2.1 cvs_deploy.module
--- cvs_deploy.module	19 Nov 2008 18:36:00 -0000	1.20.2.1
+++ cvs_deploy.module	29 Apr 2009 00:11:54 -0000
@@ -104,8 +104,18 @@ function _cvs_deploy_version_alter(&$ver
     // update_get_available() here, we'd enter infinite recursion when that
     // function invokes update_status_get_projects(), which in turn needs to
     // process the .info files, which invokes the hook that leads here.
-    if (empty($available) && ($cache = cache_get('update_info', 'cache_update'))) {
-      $available = $cache->data;
+    if (empty($available)) {
+      if (function_exists('_update_cache_get')) {
+        // 6.11 core and later, using the new private cache system.
+        $cache = _update_cache_get('update_available_releases');
+      }
+      else {
+        // 6.10 core and earlier, using the (fragile) core cache system.
+        $cache = cache_get('update_info', 'cache_update');
+      }
+      if (!empty($cache)) {
+        $available = $cache->data;
+      }
     }
     $project = update_get_project_name($file);
     if (isset($available[$project]['releases'])) {
