implement rpm_select and rpm_provides
do one fewer pass through primary in rpm_select

use rpm_select in rpm_requires to avoid duplicates
while loop to find all dependencies