Index: features.module
===================================================================
--- features.module (revision 2943)
+++ features.module (working copy)
@@ -662,7 +662,9 @@
   }
 
   if (empty($items)) {
-    $states = features_get_component_states();
+    $rebuild_only = ($op == 'rebuild') ? TRUE : FALSE;
+    $features = array();
+    $states = features_get_component_states($features, $rebuild_only);
     foreach ($states as $module_name => $components) {
       foreach ($components as $component => $state) {
         if (in_array($state, $restore_states)) {
@@ -706,7 +708,7 @@
 /**
  * Utility functions ==================================================
  */
- 
+
 /**
  * Represent the current state of permissions as a role name to role/perm array.
  */
