From fe449350602f765fc73233b5b9963a45e8039cec Mon Sep 17 00:00:00 2001 From: Craig Comstock Date: Wed, 3 Dec 2025 15:31:14 -0600 Subject: [PATCH] Change package_method promise behavior to only allow installing packages which are available Ticket: ENT-13536 Changelog: title --- cf-agent/verify_packages.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cf-agent/verify_packages.c b/cf-agent/verify_packages.c index a98a24e370..12ae66a5dd 100644 --- a/cf-agent/verify_packages.c +++ b/cf-agent/verify_packages.c @@ -2204,9 +2204,9 @@ static bool WillSchedulePackageOperation(EvalContext *ctx, const Attributes *a, break; default: - if (!matches) // why do we schedule a 'not matched' operation? + if (!matches) { - return true; + Log(LOG_LEVEL_INFO, "Package '%s' is not an available package.", pp->promiser); } else if (!installed) // matches and not installed {