Index: jquery_ui.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jquery_ui/Attic/jquery_ui.install,v
retrieving revision 1.5.4.2
diff -u -p -r1.5.4.2 jquery_ui.install
--- jquery_ui.install	16 Jun 2009 02:05:07 -0000	1.5.4.2
+++ jquery_ui.install	22 Jun 2009 13:36:10 -0000
@@ -15,9 +15,9 @@ function jquery_ui_requirements($phase) 
   $jquery_ui_version = 0;
 
   if ($phase == 'install') {
-    // The jquery_ui_get_version() function is in the .module file, which isn't
-    // loaded yet.
-    include_once drupal_get_path('module', 'jquery_ui') . '/jquery_ui.module';
+    // We cannot do anything here, if called from an install
+    // profile, so skip when installing from a runtime too.
+    return;
   }
 
   $requirements['jquery_ui']['title'] = $t('jQuery UI');
