You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jo...@apache.org on 2016/10/16 13:30:17 UTC

[27/30] ambari git commit: AMBARI-18535 Ambari is not picking up the latest repo for HDP-2.4 (zhewang)

AMBARI-18535 Ambari is not picking up the latest repo for HDP-2.4 (zhewang)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/96d66e0d
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/96d66e0d
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/96d66e0d

Branch: refs/heads/branch-feature-AMBARI-18456
Commit: 96d66e0d41d49e67d11d5ea558c24d858f4b9577
Parents: 2a77e39
Author: Zhe (Joe) Wang <zh...@apache.org>
Authored: Fri Oct 14 17:58:59 2016 -0700
Committer: Zhe (Joe) Wang <zh...@apache.org>
Committed: Fri Oct 14 17:58:59 2016 -0700

----------------------------------------------------------------------
 ambari-web/app/controllers/installer.js | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/96d66e0d/ambari-web/app/controllers/installer.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/installer.js b/ambari-web/app/controllers/installer.js
index 5493b3a..ab1dbd4 100644
--- a/ambari-web/app/controllers/installer.js
+++ b/ambari-web/app/controllers/installer.js
@@ -726,6 +726,17 @@ App.InstallerController = App.WizardController.extend({
         });
         existedOS.push(supportedOS);
       }
+      if(existedMap[supportedOS.OperatingSystems.os_type]) {
+        existedMap[supportedOS.OperatingSystems.os_type].repositories.forEach(function (repo) {
+          supportedOS.repositories.forEach(function (supportedRepo) {
+            if (supportedRepo.Repositories.repo_id == repo.Repositories.repo_id) {
+              repo.Repositories.base_url = supportedRepo.Repositories.base_url;
+              repo.Repositories.default_base_url = supportedRepo.Repositories.default_base_url;
+              repo.Repositories.latest_base_url = supportedRepo.Repositories.latest_base_url;
+            }
+          });
+        });
+      }
     });
     App.stackMapper.map(data.versionDefinition);