build necessary logic: look at the package with the highest version
Created by: ollieparanoid
Fixes #955 (closed). Previously we did not look through all APKINDEXes while looking for the package with a given name and the highest version. This caused pmbootstrap to build packages even if they are in the binary repo and up to date.