summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@verizonmedia.com>2020-04-03 19:08:11 +0200
committerHåkon Hallingstad <hakon@verizonmedia.com>2020-04-03 19:08:11 +0200
commitb994f8c35fa5ffe3366ea2e39cf3f218f9f9e3f2 (patch)
tree41ea7606ce4bbffbf7e4656c1552126a0f1312d4
parent6a6438c6da562d5fa7f220b8e80fd274314740c6 (diff)
Document when --enablerepo is necessary
-rw-r--r--node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/yum/Yum.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/yum/Yum.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/yum/Yum.java
index 53f3a6d4900..0c3ad0ca97d 100644
--- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/yum/Yum.java
+++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/yum/Yum.java
@@ -102,6 +102,8 @@ public class Yum {
if (!alreadyLocked) {
CommandLine commandLine = terminal.newCommandLine(context).add("yum", "versionlock", "add");
+ // If the targetVersionLockName refers to a package in a by-default-disabled repo,
+ // we must enable the repo unless targetVersionLockName is already installed.
for (String repo : repos) commandLine.add("--enablerepo=" + repo);
commandLine.add(targetVersionLockName).execute();
modified = true;