From 2f4c859dd8e5d93999fa3727718c6475c9a8567b Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Tue, 9 May 2023 16:31:34 +0000 Subject: [PATCH] Show warning in case no kernel packages matched --- kernel.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel.go b/kernel.go index 87e6d42..1aa24eb 100644 --- a/kernel.go +++ b/kernel.go @@ -269,6 +269,10 @@ func matchOracleLinuxPkg(container, mask string) ( } } + if len(pkgs) == 0 { + log.Warn().Msg("no packages matched") + } + return }