[api] avoid double defintions of default repositories with the same name