cout << _("Status: "); // TODO debug
bool i = ins_pool_item ? true : false;
- if (pool_item.status().isUndetermined ())
- cout << (i ? _("Installed"): _("Uninstalled"));
- else if (pool_item.status().isEstablishedUneeded ())
- cout << (i ? _("No Longer Applicable"): _("Not Applicable"));
- else if (pool_item.status().isEstablishedSatisfied ())
- cout << (i ? _("Applied"): _("Not Needed"));
- else if (pool_item.status().isEstablishedIncomplete ())
- cout << (i ? _("Broken"): _("Needed"));
+ if (pool_item.isBroken ())
+ cout << (i ? _("broken"): _("satisfied"));
cout << endl;
Patch::constPtr patch = asKind<Patch>(pool_item.resolvable());
installer.installed_item.resolvable()->arch() == installer.item.resolvable()->arch() &&
( ! copts.count("force") ) )
{
- // if it is needed install anyway, even if it is installed
- if ( installer.item.status().isNeeded() )
+ // if it is broken install anyway, even if it is installed
+ if ( installer.item.isBroken() )
{
installer.item.status().setTransact( true, zypp::ResStatus::USER );
}
if (!full_pool_shown // show item if not shown all before
|| it->status().transacts() // or transacts
- || !it->status().isUndetermined()) // or established status
+ || !it->isBroken()) // or broken status
{
_XDEBUG( count << ": " << *it );
}
ResObject::constPtr res = it->resolvable();
Patch::constPtr patch = asKind<Patch>(res);
- if ( it->status().isNeeded() )
+ if ( it->isBroken() )
{
gData.patches_count++;
if (patch->category() == "security")
static string string_status (const ResStatus& rs)
{
- bool i = rs.isInstalled ();
- if (rs.isUndetermined ())
- return i? _("Installed"): _("Uninstalled");
- else if (rs.isEstablishedUneeded ())
- return i? _("No Longer Applicable"): _("Not Applicable");
- else if (rs.isEstablishedSatisfied ())
- return i? _("Applied"): _("Not Needed");
- else if (rs.isEstablishedIncomplete ())
- return i? _("Broken"): _("Needed");
- // if ResStatus interface changes
- return _("error");
+ return rs.isInstalled () ? _("Installed"): _("Uninstalled");
}
// patches
for (; it != e; ++it )
{
ResObject::constPtr res = it->resolvable();
- if ( it->status().isUndetermined() ) {
-#warning is this a library bug?
- // these are duplicates of those that are determined
- continue;
- }
Patch::constPtr patch = asKind<Patch>(res);
TableRow tr;
tr << res->name () << res->edition ().asString();
tr << patch->category();
tr << string_status (it->status ());
+ if (it->isBroken())
+ tr << _("Broken");
tbl << tr;
}
tbl.sort (1); // Name
for (; it != e; ++it )
{
ResObject::constPtr res = it->resolvable();
- if ( it->status().isNeeded() )
+ if ( it->isBroken() )
{
Patch::constPtr patch = asKind<Patch>(res);
patchcount++;
- if ( it->status().isNeeded())
+ if ( it->isBroken())
{
Patch::constPtr patch = asKind<Patch>(res);
if ((pkg_mgr_available && patch->affects_pkg_manager()) ||
for (; it != e; ++it )
{
ResObject::constPtr res = it->resolvable();
- if ( it->status().isNeeded() )
+ if ( it->isBroken() )
{
Patch::constPtr patch = asKind<Patch>(res);
tr << res->name () << res->edition ().asString();
tr << patch->category();
tr << string_status (it->status ());
+ if (it->isBroken())
+ tr << _("Broken");
if (patch->affects_pkg_manager ())
pm_tbl << tr;
{
ResObject::constPtr res = it->resolvable();
- if ( it->status().isNeeded() ) {
+ if ( it->isBroken() ) {
Patch::constPtr patch = asKind<Patch>(res);
if (attempt == 1 || patch->affects_pkg_manager ()) {
// #221476