From b4e8c771ded872f148aea3908089dd96e824c463 Mon Sep 17 00:00:00 2001 From: Bastian Triller Date: Fri, 31 Jan 2025 13:18:18 +0100 Subject: [PATCH] functions: Fix formatting for package*matching --- reference/functions/packagesmatching.markdown | 5 +++-- reference/functions/packageupdatesmatching.markdown | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/reference/functions/packagesmatching.markdown b/reference/functions/packagesmatching.markdown index 7335fba2c..b19135654 100644 --- a/reference/functions/packagesmatching.markdown +++ b/reference/functions/packagesmatching.markdown @@ -46,10 +46,12 @@ some desired packages, and finally reports if they are installed. [%CFEngine_include_example(packagesmatching.cf)%] **Refresh rules:** + * installed packages cache used by packagesmatching() is refreshed at the end of each agent run in accordance with constraints defined in the relevant package module body. * installed packages cache is refreshed after installing or removing a package. * installed packages cache is refreshed if no local cache exists. - This means a reliable way to force a refresh of CFEngine's internal package cache is to simply delete the local cache: + +This means a reliable way to force a refresh of CFEngine's internal package cache is to simply delete the local cache: ```cf3 $(sys.statedir)/packages_installed_.lmdb* @@ -65,7 +67,6 @@ $(sys.statedir)/software_packages.csv **History:** * Introduced in CFEngine 3.6 - * Function started using `package_module` based data sources by default, even if there is no `package_inventory` attribute defined in `body common control` if available in 3.23.0 diff --git a/reference/functions/packageupdatesmatching.markdown b/reference/functions/packageupdatesmatching.markdown index e5e063eff..dcc612970 100644 --- a/reference/functions/packageupdatesmatching.markdown +++ b/reference/functions/packageupdatesmatching.markdown @@ -50,10 +50,12 @@ vars: ``` **Refresh rules:** + * updates cache used by packageupdatesmatching() is refreshed at the end of each agent run in accordance with constraints defined in the relevant package module body. * updates cache is refreshed every time `repo` type package is installed or removed * updates cache is refreshed if no local cache exists. - This means a reliable way to force a refresh of CFEngine's internal package cache is to simply delete the local cache: + +This means a reliable way to force a refresh of CFEngine's internal package cache is to simply delete the local cache: ```cf3 $(sys.statedir)/packages_updates_.lmdb* @@ -68,7 +70,6 @@ $(sys.statedir)/software_patches_avail.csv **History:** * Introduced in CFEngine 3.6 - * Function started using `package_module` based data sources by default, even if there is no `package_inventory` attribute defined in `body common control` if available in 3.23.0