taking item.status istead of fixed statis
authorStefan Schubert <schubi@suse.de>
Wed, 8 Feb 2006 22:10:02 +0000 (22:10 +0000)
committerStefan Schubert <schubi@suse.de>
Wed, 8 Feb 2006 22:10:02 +0000 (22:10 +0000)
zypp/solver/detail/ResolverContext.cc

index 2ae067af66733d26aaa1aa260e68f426ebe62712..ad6612ea5039686cd190d887258769399d61c2e6 100644 (file)
@@ -136,6 +136,7 @@ _XDEBUG( "[" << context << "]:" << it->second );
        }
        context = context->_parent;                     // N: go up the chain
     }
+#if 0
     ResStatus status;
     if (item.status().isInstalled())
        status = ResStatus::installed;
@@ -143,8 +144,12 @@ _XDEBUG( "[" << context << "]:" << it->second );
        status = ResStatus::uninstalled;
 
     _last_checked_status = status;
-_XDEBUG( "[NULL]:" << status );
-    return status;                             // Not part of context, return Pool status
+    _XDEBUG( "[NULL]:" << status );    
+#else
+    _last_checked_status = item.status();    
+#endif
+
+    return _last_checked_status;                               // Not part of context, return Pool status
 }