Index: modules/system/system.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.module,v
retrieving revision 1.923
diff -u -p -r1.923 system.module
--- modules/system/system.module	24 Apr 2010 14:49:14 -0000	1.923
+++ modules/system/system.module	26 Apr 2010 01:23:07 -0000
@@ -2173,6 +2173,11 @@ function system_update_files_database(&$
     }
   }
   $query->execute();
+
+  // If any module or theme was moved to a new location, we need to reset the
+  // system_list() cache or we will continue to load the old copy, look for
+  // schema updates in the wrong place, etc.
+  system_list_reset();
 }
 
 /**
