create a repo file as part of copy_repo function

Signed-off-by: Gowrishankar Rajaiyan <gsr@redhat.com>