View | Details | Raw Unified | Return to bug 600134
Collapse All | Expand All

(-)a/src/Summary.cc (+10 lines)
Lines 255-260 void Summary::readPool(const zypp::ResPool & pool) Link Here
255
255
256
      candidates[*kit].insert(ResPair(nullres, candidate));
256
      candidates[*kit].insert(ResPair(nullres, candidate));
257
    }
257
    }
258
258
  // compare available updates with the list of packages to be upgraded
259
  // compare available updates with the list of packages to be upgraded
259
  for_(it, toupgrade.begin(), toupgrade.end())
260
  for_(it, toupgrade.begin(), toupgrade.end())
260
    set_difference(
261
    set_difference(
Lines 263-268 void Summary::readPool(const zypp::ResPool & pool) Link Here
263
        inserter(notupdated[it->first], notupdated[it->first].begin()),
264
        inserter(notupdated[it->first], notupdated[it->first].begin()),
264
        Summary::ResPairNameCompare());
265
        Summary::ResPairNameCompare());
265
266
267
  // remove kinds with empty sets after the set_difference
268
  for (KindToResPairSet::iterator it = notupdated.begin(); it != notupdated.end();)
269
  {
270
    if (it->second.empty())
271
      notupdated.erase(it++);
272
    else
273
      ++it;
274
  }
275
266
  m.stop();
276
  m.stop();
267
}
277
}
268
278

Return to bug 600134