summaryrefslogtreecommitdiffstats
path: root/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/yum/Yum.java
diff options
context:
space:
mode:
Diffstat (limited to 'node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/yum/Yum.java')
-rw-r--r--node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/yum/Yum.java15
1 files changed, 15 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 dbb4c909a4b..188de5a2f17 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
@@ -88,6 +88,21 @@ public class Yum {
}
public boolean converge() {
+// Terminal terminal;
+// CommandLine commandLine = terminal.newCommandLine(taskContext);
+// commandLine.add("yum", yumCommand, "--assumeyes");
+// enabledRepo.ifPresent(repo -> commandLine.add("--enablerepo=" + repo));
+// commandLine.add(packages);
+// CommandResult result = commandLine.executeSilently();
+//
+// String output = result.getUntrimmedOutput();
+// if (commandOutputNoopPattern.matcher(output).find()) {
+// return false;
+// } else {
+// commandLine.recordSilentExecutionAsSystemModification();
+// return true;
+// }
+
Command command = commandSupplier.get();
command.add("yum", yumCommand, "--assumeyes");
enabledRepo.ifPresent(repo -> command.add("--enablerepo=" + repo));