Index: modules/update/update.compare.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/update/update.compare.inc,v
retrieving revision 1.4
diff -u -p -r1.4 update.compare.inc
--- modules/update/update.compare.inc	17 Jan 2008 12:03:21 -0000	1.4
+++ modules/update/update.compare.inc	18 Jan 2008 01:15:25 -0000
@@ -49,6 +49,11 @@ function _update_process_info_list(&$pro
       $file->info['project'] = update_get_project_name($file);
     }
 
+    // If we still don't know the 'project', give up.
+    if (empty($file->info['project'])) {
+      continue;
+    }
+
     // If we don't already know it, grab the change time on the .info file
     // itself. Note: we need to use the ctime, not the mtime (modification
     // time) since many (all?) tar implementations will go out of their way to
@@ -99,19 +104,6 @@ function update_get_project_name($file) 
     // so we must hard-code a list here.
     $project_name = 'drupal';
   }
-  else {
-    // This isn't part of core, so guess the project from the directory.
-    $last = '';
-    foreach (array_reverse(explode('/', $file->filename)) as $dir) {
-      if ($dir == 'modules' || $dir == 'themes') {
-        break;
-      }
-      $last = $dir;
-    }
-    if ($last) {
-      $project_name = $last;
-    }
-  }
   return $project_name;
 }
 
