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:16:10 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 096d75d7f -> d9e8f4f8c


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/d9e8f4f8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d9e8f4f8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d9e8f4f8

Branch: refs/heads/branch-2.5
Commit: d9e8f4f8ce18802b014b5803627e06c4d03a469e
Parents: 096d75d
Author: Eugene Chekanskiy <echekanskiy@apache.org>
Authored: Thu Jul 27 20:15:44 2017 +0300
Committer: Eugene Chekanskiy <echekanskiy@apache.org>
Committed: Thu Jul 27 20:15:44 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/d9e8f4f8/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 dd23e76..f19464f 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
@@ -1224,6 +1224,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