Handle obsolete matches (more) correctly in rpmal
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 5 Apr 2012 08:32:38 +0000 (11:32 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 5 Apr 2012 08:57:03 +0000 (11:57 +0300)
commitf8532c5dad4bed83c9630401c155665f67fe2493
treed5fd2c19ee66ce7b61a3790a317ab55db5a0e7f4
parent556c2835af1558b9455d3bddf11fa4c72aa8640e
Handle obsolete matches (more) correctly in rpmal

- Similar to commit 9fb81eac0bcd239e46459f72916099f1adfc5cb9 but
  on the to-be-installed set: obsoletes should only be matched against
  package names, not any provide or file names. Hasn't really mattered
  previously due to the way its called, but since commit
  05487d9a3f763cfed5f5ca75b4fbadb62f38dfd6 I guess it started to matter.
  It's more correct this way anyhow, and should fix RhBug:810077.
- Since rpmal only knows about provides, we need to handle obsoletes
  as a special case and filter out matches on provide names different
  than the matching package name.
(cherry picked from commit 8106e7e89c3c673f8eb7d2ed5027e2ee9750e3b5)
lib/rpmal.c