Here's 2 guesses (I cannot tell without script and reproducer: I'm guessing)
at what is wrong:
Mandriva has added Distepoch/Disttag.
There have been other Mandriva changes to RPM (which should be seen by rpm-python)
and to perl-URPM (which may need to be done equivalently in rpm-python).
But in general, the rpm-python bindings are the thinnest possible wrapping
onto the C functions in RPM libraries. You SHOULD get the same answer
from the bindings as you do from RPM libraries. There's no "weird" just
a lot of gory details.
Here's 2 guesses (I cannot tell without script and reproducer: I'm guessing)
at what is wrong:
Mandriva has added Distepoch/Disttag.
There have been other Mandriva changes to RPM (which should be seen by rpm-python)
and to perl-URPM (which may need to be done equivalently in rpm-python).
But in general, the rpm-python bindings are the thinnest possible wrapping
onto the C functions in RPM libraries. You SHOULD get the same answer
from the bindings as you do from RPM libraries. There's no "weird" just
a lot of gory details.