Filter out duplicate problems when adding to element problem sets
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 26 Mar 2010 10:23:47 +0000 (12:23 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 26 Mar 2010 10:47:18 +0000 (12:47 +0200)
commita6bf388ab32f388147084e0f9936ed6567ada776
treefe46ddf288cebdc470acade95c5991d2c06a5231
parent0aba719592a1dd6532a1e70e9defbad5e62fc1ed
Filter out duplicate problems when adding to element problem sets
- Problems associated with a transaction element are necessarily unique
  to that element, so when filtered there we don't have to worry about
  skipping dupes elsewhere like in merged sets. This can actually lead
  to apparent duplicates in the current problem report output (eg in cases
  where multiple packages provide the same dependency which would be
  removed, like multilib packages), but this is only an artifact of
  they way the problems are currently printed out.
- While this is still a dumb linear search, it can be several seconds
  faster than the previous filtering in rpmpsPrint(), which is now
  just a dumb convenience function.
lib/rpmps.c
lib/rpmte.c