Make rpmdsMerge() return something meaningful
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 15 Apr 2013 14:35:29 +0000 (17:35 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 7 Jun 2013 09:22:24 +0000 (12:22 +0300)
commit53f11564541220db4b23a895414d301a1d3a6337
treecf1b11a09ac9eabed338aa9a91a488dcd3e1abc2
parent61b64799c75251f20f58d873732fa6e1186df431
Make rpmdsMerge() return something meaningful

- The API documentation was always incorrect and meaningless, as
  rpmdsMerge() can merge any number of entries so there's no single
  index to return. Instead return the number of merged entries
  and adjust the docs to match the new behavior.
- This is of course an incompatible API change in a strict sense,
  but then since the documentation was always wrong to begin with
  anybody looking at rpmdsMerge() return is relying on undocumented
  behavior really. The compatible way to use this is to check
  for < 0 for errors and assume success otherwise.
(cherry picked from commit a48b11edbd00c4f0dbdd3462e659dd1d3bcf21ac)
lib/rpmds.c
lib/rpmds.h