Mailinglist Archive: zypp-commit (233 mails)

< Previous Next >
[zypp-commit] <libzypp> master : Don't try to access droplist of dropped products. (bnc #551697)
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Mon, 2 Nov 2009 14:36:32 +0100
  • Message-id: <E1N4x9z-0005WZ-0U@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 6726d98e4da760be174c85f174dc223142fa8ed7
Author: Michael Andres <ma@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages