Do not add file packages twice.
Do not fail the assert in pkgdb_rquery.

If we have no remote repos loaded, we just return nothing instead of
failing an assert deep inside `pkgdb_get_reponame`.