ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From echekans...@apache.org
Subject ambari git commit: AMBARI-21589. Service repos are not updated with "latest" url in repoinfo.xml (echekanskiy)
Date Thu, 27 Jul 2017 17:14:08 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 8ce722c82 -> 218829f93


AMBARI-21589. Service repos are not updated with "latest" url in repoinfo.xml (echekanskiy)


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

Branch: refs/heads/trunk
Commit: 218829f93b87408f0f33637fce8caca5edaa9ac6
Parents: 8ce722c
Author: Eugene Chekanskiy <echekanskiy@apache.org>
Authored: Thu Jul 27 20:13:53 2017 +0300
Committer: Eugene Chekanskiy <echekanskiy@apache.org>
Committed: Thu Jul 27 20:13:53 2017 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/ambari/server/stack/StackModule.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/218829f9/ambari-server/src/main/java/org/apache/ambari/server/stack/StackModule.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/stack/StackModule.java b/ambari-server/src/main/java/org/apache/ambari/server/stack/StackModule.java
index 7b2f87721..d73387d 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/stack/StackModule.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/stack/StackModule.java
@@ -1227,6 +1227,9 @@ public class StackModule extends BaseModule<StackModule, StackInfo>
implements V
         RepositoryXml serviceRepoXml = ssd.getRepoFile();
         if (null != serviceRepoXml) {
           repos.addAll(serviceRepoXml.getRepositories());
+          if (null != serviceRepoXml.getLatestURI()) {
+            stackContext.registerRepoUpdateTask(serviceRepoXml.getLatestURI(), this);
+          }
         }
       }
     }


Mime
View raw message