From 369715f297986c6cf7d2b16112b55018da368e42 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 14 Jan 2016 08:44:13 +0000 Subject: [PATCH] Make APY key checks work for long format fingerprints --- cookbooks/apt/providers/source.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/apt/providers/source.rb b/cookbooks/apt/providers/source.rb index b6a318634..77a204bde 100644 --- a/cookbooks/apt/providers/source.rb +++ b/cookbooks/apt/providers/source.rb @@ -27,7 +27,7 @@ action :create do if new_resource.key execute "apt-key-#{new_resource.key}" do command "/usr/bin/apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys #{new_resource.key}" - not_if "/usr/bin/apt-key list | /bin/fgrep -q #{new_resource.key}" + not_if "/usr/bin/apt-key adv --list-keys #{new_resource.key}" end end -- 2.43.2