-P: correctly detect packages from repositories, did classify
every package as foreign. Also fix the PRIO code of -P: if found,
don't try other repositories, so that slacker does not end up with
displaying all repositories.