Handle rpm name versions correctly.

Ensure that we cut off the python -> rpm name
versions correctly and don't put duplicate names
into the returned array.

Change-Id: I4767ed815ecbfcfb4756c751be2b2e5ccd0deb40
Merge "Handle rpm name versions correctly."