implement pkglist_find, using linear search for now since we don't yet have a sorted guarantee