Index: includes/install.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/install.inc,v
retrieving revision 1.113
diff -u -r1.113 install.inc
--- includes/install.inc	25 Sep 2009 14:54:49 -0000	1.113
+++ includes/install.inc	25 Sep 2009 19:23:46 -0000
@@ -93,7 +93,7 @@
  */
 function drupal_get_schema_versions($module) {
   $updates = &drupal_static(__FUNCTION__, NULL);
-  if (!isset($updates[$module])) {
+  if (!isset($updates)) {
     $updates = array();
     // Prepare regular expression to match all possible defined hook_update_N().
     $regexp = '/^(?P<module>.+)_update_(?P<version>\d+)$/';
@@ -598,6 +598,7 @@
     drupal_install_schema($module);
     // Now allow the module to perform install tasks.
     module_invoke($module, 'install');
+    drupal_static_reset('drupal_get_schema_versions');
     $versions = drupal_get_schema_versions($module);
     drupal_set_installed_schema_version($module, $versions ? max($versions) : SCHEMA_INSTALLED);
     return TRUE;
@@ -638,6 +639,7 @@
   drupal_install_initialize_database();
   module_invoke('system', 'install');
 
+  drupal_static_reset('drupal_get_schema_versions');
   $system_versions = drupal_get_schema_versions('system');
   $system_version = $system_versions ? max($system_versions) : SCHEMA_INSTALLED;
   db_insert('system')
