@Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    RepositoryInfo that = (RepositoryInfo) o;
    return repoSaved == that.repoSaved &&
        unique == that.unique &&
        Objects.equal(baseUrl, that.baseUrl) &&
        Objects.equal(osType, that.osType) &&
        Objects.equal(repoId, that.repoId) &&
        Objects.equal(repoName, that.repoName) &&
        Objects.equal(distribution, that.distribution) &&
        Objects.equal(components, that.components) &&
        Objects.equal(mirrorsList, that.mirrorsList) &&
        Objects.equal(defaultBaseUrl, that.defaultBaseUrl) &&
        Objects.equal(ambariManagedRepositories, that.ambariManagedRepositories);
  }
@param unique set is version of HDP that change with each release
ambari-server/src/main/java/org/apache/ambari/server/state/RepositoryInfo.java