printRes ( std::ostream & str, ResObject::constPtr r )
{
if (r->kind() != ResTraits<zypp::Package>::kind)
- str << '[' << r->kind() << ']';
+ str << r->kind() << ':';
str << r->name() << '-' << r->edition();
if (r->arch() != "") {
str << '.' << r->arch();
context->spewInfo ();
cout << "Context Context:" << endl;
- cout << context << endl;
+ cout << *context << endl;
return;
}
return false;
}
}
-#if 0
+#if 0 // disabled in favor of lexical ordering
if (upgrades.insert (poolItem).second) { // only consider first match
resolver->addPoolItemToInstall (poolItem);
RESULT << "Upgrading ";
static void
print_marked_cb (PoolItem_Ref poolItem, const ResStatus & status, void *data)
{
- RESULT << poolItem << " " << status << endl;
+ RESULT; printRes (cout, poolItem.resolvable()); cout << " " << status << endl;
return;
}
freshen_marked_cb (PoolItem_Ref poolItem, const ResStatus & status, void *data)
{
solver::detail::Resolver_Ptr resolver = *((solver::detail::Resolver_Ptr *)data);
- if (status.isIncomplete()) {
+ if (status.isNeeded()) {
resolver->addPoolItemToInstall (poolItem);
}