fix "NameError: global name 'repo_name' is not defined"

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