From: Vadim Chernyshev Date: Thu, 19 Mar 2020 13:32:46 +0000 (+0300) Subject: fix unless_cmd X-Git-Tag: v7.4.2~5^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=ce7ceb3c467073076e581ee4ab99c4093403217d;p=puppet-modules%2Fpuppetlabs-apt.git fix unless_cmd apt-mark supports the following syntax: * showauto * showmanual * showhold Signed-off-by: Vadim Chernyshev --- diff --git a/manifests/mark.pp b/manifests/mark.pp index e439162..d83a02c 100644 --- a/manifests/mark.pp +++ b/manifests/mark.pp @@ -13,7 +13,7 @@ define apt::mark ( $unless_cmd = undef } default: { - $unless_cmd = "/usr/bin/apt-mark showm${setting} ${title} | /bin/fgrep -qs ${title}" + $unless_cmd = "/usr/bin/apt-mark show${setting} ${title} | /bin/fgrep -qs ${title}" } } exec { "/usr/bin/apt-mark ${setting} ${title}":