Author: schubi2 Date: Wed Nov 21 14:02:30 2007 New Revision: 7881 URL: http://svn.opensuse.org/viewcvs/zypp?rev=7881&view=rev Log: Patterns are "present" although they are incomplete. So patterns behave the same way like packages do. Modified: branches/SuSE-SLE-10-SP2-Branch/libzypp/zypp/solver/detail/ResolverContext.cc Modified: branches/SuSE-SLE-10-SP2-Branch/libzypp/zypp/solver/detail/ResolverContext.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-SLE-10-SP2-Branch/libzypp/zypp/solver/detail/ResolverContext.cc?rev=7881&r1=7880&r2=7881&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP2-Branch/libzypp/zypp/solver/detail/ResolverContext.cc (original) +++ branches/SuSE-SLE-10-SP2-Branch/libzypp/zypp/solver/detail/ResolverContext.cc Wed Nov 21 14:02:30 2007 @@ -691,11 +691,18 @@ { ResStatus status = getStatus(item); - bool res = ((status.staysInstalled() && !status.isIncomplete()) + bool res = false; + if (item->kind() == ResTraits<Atom>::kind + ||item->kind() == ResTraits<Patch>::kind) { + res = ((status.staysInstalled() && !status.isIncomplete()) || (status.isToBeInstalled() && !status.isNeeded()) || status.isUnneeded() || status.isSatisfied() ); + } else { + // packages, patterns are present although they are incomplete or unneeded (Bug289577) + res = (status.staysInstalled() || status.isToBeInstalled()); + } if (unneeded) *unneeded = status.isUnneeded(); if (installed) *installed = status.staysInstalled() || status.isToBeInstalled(); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org