Index: modules/update/update.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/update/update.module,v
retrieving revision 1.70
diff -u -p -r1.70 update.module
--- modules/update/update.module	6 Oct 2010 13:36:30 -0000	1.70
+++ modules/update/update.module	22 Nov 2010 21:35:23 -0000
@@ -336,6 +336,18 @@ function update_form_system_modules_alte
 }
 
 /**
+ * Implements hook_verify_update_archive().
+ */
+function update_verify_update_archive($project, $archive_file, $directory) {
+  // If the package contains Drupal core, throw an exception.
+  if (file_exists("$directory/$project/includes/bootstrap.inc")) {
+    $failure[$archive_file] = 'core';
+    throw new Exception(t('Updating of Drupal core is not supported.'));
+  }
+  return $failures;
+}
+
+/**
  * Helper function for use as a form submit callback.
  */
 function update_cache_clear_submit($form, &$form_state) {
? sites/clock7.local.dev
? sites/drupal7.local.dev
? sites/git-test.local.dev
? sites/git-test2.local.dev
? sites/git-test3.local.dev
? sites/git-test4.local.dev
? sites/install7.local.dev
? sites/libraries7.local.dev
? sites/views7.local.dev
