sources: Take renamed packages into account

This is similar to what we did for the fetchfedora command.