* import: check erepo is None before modifying url - fixes #3780 * import: add test to cover this local import