Index: cdn.install
===================================================================
--- cdn.install	(révision 733)
+++ cdn.install	(copie de travail)
@@ -198,20 +198,28 @@
       // integration method is *not* 'fallback' (thus either 'pressflow' or
       // 'core patch') *and* when the ImageCache module is enabled.
       if ($integration_method != 'fallback' && module_exists('imagecache')) {
-        // Check if either of the patches is applied, then remove the
-        // requirements for the last one if neither patch is applied.
-        _cdn_requirements_generate_requirement_for_patch(
-          $requirements,
-          'imagecache',
-          $t('CDN — ImageCache patch')
-        );
-        _cdn_requirements_generate_requirement_for_patch(
-          $requirements,
-          'imagecache_6_2',
-          $t('CDN — ImageCache patch')
-        );
-        if ($requirements['cdn_imagecache_patch']['value'] == $requirements['cdn_imagecache_6_2_patch']['value']) {
-          unset($requirements['cdn_imagecache_6_2_patch']);
+        
+        $info = drupal_parse_info_file(drupal_get_path('module', 'imagecache') .'/'. 'imagecache.info');
+        /* 
+         * The patch have been integrated in imagecache 6.x-2.0beta12.
+         * Only check if we have imagecache 5.x or imagecache 6.x earlier than 2.0beta12.
+         */
+        if ($info['core'] != '6.x' || $info['datestamp'] < 1305566515 /* 6.x-2.0beta12 */) {
+          // Check if either of the patches is applied, then remove the
+          // requirements for the last one if neither patch is applied.
+          _cdn_requirements_generate_requirement_for_patch(
+            $requirements,
+            'imagecache',
+            $t('CDN — ImageCache patch')
+          );
+          _cdn_requirements_generate_requirement_for_patch(
+            $requirements,
+            'imagecache_6_2',
+            $t('CDN — ImageCache patch')
+          );
+          if ($requirements['cdn_imagecache_patch']['value'] == $requirements['cdn_imagecache_6_2_patch']['value']) {
+            unset($requirements['cdn_imagecache_6_2_patch']);
+          }
         }
       }
   }
