log all problems of a concerning item
authorStefan Schubert <schubi@suse.de>
Thu, 14 Jun 2007 13:14:21 +0000 (13:14 +0000)
committerStefan Schubert <schubi@suse.de>
Thu, 14 Jun 2007 13:14:21 +0000 (13:14 +0000)
zypp/solver/detail/Resolver_problems.cc

index 0a8a358..6581eca 100644 (file)
@@ -64,7 +64,8 @@ namespace zypp
 
 using namespace std;
 
-typedef map<PoolItem_Ref, ResolverInfo_Ptr> ProblemMap;
+       
+typedef multimap<PoolItem_Ref, ResolverInfo_Ptr> ProblemMap;   
 typedef multimap<PoolItem_Ref, Capability> ItemCapabilityMap;
 typedef multimap<PoolItem_Ref, PoolItem_Ref> ConflictMap;      
 
@@ -124,7 +125,7 @@ collector_cb (ResolverInfo_Ptr info, void *data)
     PoolItem_Ref item = info->affected();
     if (item
        && info->error()) {
-       collector->problems[item] = info;
+       collector->problems.insert (make_pair( item, info));    
     }
     // Collicting items which are providing requirements but they
     // are set for uninstall