diff options
author | Valerij Fredriksen <freva@users.noreply.github.com> | 2020-04-03 20:00:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-03 20:00:17 +0200 |
commit | 47f3ea0d764eb273c071603d775e2828ac37a034 (patch) | |
tree | 076d1cba71a7ce895a11f2806f4d616eea5a7a42 | |
parent | 6a6438c6da562d5fa7f220b8e80fd274314740c6 (diff) | |
parent | 4317740c5d450d62d6918909f0eff283e007f5a0 (diff) |
Merge pull request #12825 from vespa-engine/hakonhall/document-when---enablerepo-is-necessary
Document when --enablerepo is necessary
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/yum/Yum.java | 3 |
1 files changed, 3 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..4fde82f6fd6 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,9 @@ 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. + // The other versionlock commands (list, delete) does not require --enablerepo. for (String repo : repos) commandLine.add("--enablerepo=" + repo); commandLine.add(targetVersionLockName).execute(); modified = true; |