You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ec...@apache.org on 2017/07/27 17:14:08 UTC
ambari git commit: AMBARI-21589. Service repos are not updated with
"latest" url in repoinfo.xml (echekanskiy)
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 <ec...@apache.org>
Authored: Thu Jul 27 20:13:53 2017 +0300
Committer: Eugene Chekanskiy <ec...@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);
+ }
}
}
}