Fix duplicate dependency checking on build
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 20 Aug 2009 10:02:05 +0000 (13:02 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 20 Aug 2009 10:02:05 +0000 (13:02 +0300)
commit10772ac7dfad60cb5a20681d22cf851468d0a8f9
tree3600efe4eb1b9b1732d2ca769dcf9bee810466f8
parent634a67d055444593a47a21e9e9ea00df65e63d63
Fix duplicate dependency checking on build
- Broken by commit af8b41c64af39ce07d85fcd92fa78d566747d815 which
  simplified too much.
- There's no guarantee that rpmdsNew() returns a sorted dependency set
  so rpmdsFind() doesn't work correctly here. Walk the ds manually instead.
- With multiple triggers of same type, identical trigger conditions on
  different trigger script were seen as duplicates (RhBug:490378)
- Split the duplicate checking to separate helper function for clarity
build/reqprov.c