Do not abort the comparison if the same package is in an array more than once

When getting the newest package in an array, if packages are identical just
choose the first one.