Simplify and fix remote lookup since a pkgdb_it_rewind() is not possible
Simplify and fix remote lookup since a pkgdb_it_rewind() is not possible

References:	#195
Suggested by:	jlaffaye

en90/pkg,khorben/pkg,junovitch/pkg,skoef/pkg,Open343/pkg,khorben/pkg,Open343/pkg,junovitch/pkg,skoef/pkg,en90/pkg,khorben/pkg