From 49ea71799722340f8e7fdbcd2503e4c2f49b7216 Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Tue, 20 Feb 2018 16:14:45 +0100
Subject: [PATCH] Rename NewServiceBinaries-Available to
 ServiceUpdate-Requested.

Refers to #18, #28
---
 Updater/Update-Service.ps1 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Updater/Update-Service.ps1 b/Updater/Update-Service.ps1
index f5de665..cb0190b 100644
--- a/Updater/Update-Service.ps1
+++ b/Updater/Update-Service.ps1
@@ -396,7 +396,9 @@ function Update-ServiceBinaries {
 }
 
 
-function NewServiceBinaries-Available {
+function ServiceUpdate-Requested {
+    # Check for a host-specific marker file indicating whether the service
+    # binaries on this host should be updated.
     $MarkerFile = "$($UpdPathMarkerFiles)\$($env:COMPUTERNAME)"
     if (Test-Path "$MarkerFile" -Type Leaf) {
         Log-Debug "Found marker [$($MarkerFile)], not updating service."
@@ -567,7 +569,7 @@ Exit-IfDirMissing $UploadPathLogs "log file target"
 Upload-LogFiles
 
 $ConfigShouldBeUpdated = NewConfig-Available $ConfigPath
-$ServiceShouldBeUpdated = NewServiceBinaries-Available
+$ServiceShouldBeUpdated = ServiceUpdate-Requested
 if (-Not ($ConfigShouldBeUpdated -Or $ServiceShouldBeUpdated)) {
     Log-Debug "No update action found to be necessary."
     Exit
-- 
GitLab