ref: refs/heads/master
commit 6726d98e4da760be174c85f174dc223142fa8ed7
Author: Michael Andres
Date: Mon Nov 2 14:36:32 2009 +0100
Don't try to access droplist of dropped products. (bnc #551697)
---
zypp/solver/detail/SATResolver.cc | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/zypp/solver/detail/SATResolver.cc b/zypp/solver/detail/SATResolver.cc
index c76bad3..f3b5f23 100644
--- a/zypp/solver/detail/SATResolver.cc
+++ b/zypp/solver/detail/SATResolver.cc
@@ -628,7 +628,11 @@ SATResolver::solverInit(const PoolItemList & weakItems)
{
if ( (*it)->onSystem() ) // (to install) or (not to delete)
{
- CapabilitySet droplist( (*it)->candidateAsKind<Product>()->droplist() );
+ Product::constPtr prodCand( (*it)->candidateAsKind<Product>() );
+ if ( ! prodCand )
+ continue; // product no longer available
+
+ CapabilitySet droplist( prodCand->droplist() );
dumpRangeLine( MIL << "Droplist for " << (*it)->candidateObj() << ": " << droplist.size() << " ", droplist.begin(), droplist.end() ) << endl;
for_( cap, droplist.begin(), droplist.end() )
{
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org