From 25015daf111b58baecb6a05e715e247a4132e7c0 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Thu, 19 Oct 2023 21:09:07 +1100 Subject: [PATCH] Update config.d * --download-only and --local-first cannot be used together --- src/config.d | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/config.d b/src/config.d index fb7dfec82..e0203eaff 100644 --- a/src/config.d +++ b/src/config.d @@ -2086,6 +2086,12 @@ class ApplicationConfig { operationalConflictDetected = true; } + // --download-only and --local-first cannot be used together + if ((getValueBool("download_only")) && (!getValueBool("local_first"))) { + log.error("ERROR: --download-only cannot be used with --local-first ."); + operationalConflictDetected = true; + } + // Return bool value indicating if we have an operational conflict return operationalConflictDetected; }