rpmdsMatchesDep() isn't correct on obsoletes
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 20 Apr 2012 06:31:17 +0000 (09:31 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 20 Apr 2012 06:31:17 +0000 (09:31 +0300)
commit5f1ec21518078e599b2499cf1ff852837ec33df7
tree4b1105750b27bd7ecb4b8520ceabed2356657b26
parentb45294ba685192e03a6597e36b395489ea9e56f2
rpmdsMatchesDep() isn't correct on obsoletes

- Fix oversight in commit 9fb81eac0bcd239e46459f72916099f1adfc5cb9:
  rpmdsMatchesDep() works on provides, but obsoletes are matched on
  package name so we want rpmdsNVRMatchesDep(). rpmdsMatchesDep()
  "worked" as the implicit self-provide is always at the 0 index
  on packages created by modern rpmbuild, but this isn't really
  guaranteed: very old V3 rpms can have something else at the
  first index, and ditto for non-rpmbuild created packages.
- Thanks to Michael Schroeder for pointing this out.
lib/depends.c