build/repositories: fix Redhat case for add_main_repository