summaryrefslogtreecommitdiff
path: root/lib/chef/provider/package
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-03-19 09:57:06 -0700
committerTim Smith <tsmith@chef.io>2018-03-19 15:27:20 -0700
commit2955a93b0f35b1b89ec50b92be4e5127b1e9c12f (patch)
treed12a00189ac48b9617137c1ffb25a1ee6555bd5a /lib/chef/provider/package
parent4e6c7972620e68753946abe109895762a6301efd (diff)
downloadchef-2955a93b0f35b1b89ec50b92be4e5127b1e9c12f.tar.gz
Detect new "automatically" installed string in Zypper
This resolves issue #6836 which explains the issue in great detail. TLDR: Packages that are installed as deps on another package have a different string when you get info on them now. This updates the regex to detect both. Based on the zypper changelog I believe this was introduced in 1.13.17. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/provider/package')
-rw-r--r--lib/chef/provider/package/zypper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/zypper.rb b/lib/chef/provider/package/zypper.rb
index f12fa270ac..5cd2471f96 100644
--- a/lib/chef/provider/package/zypper.rb
+++ b/lib/chef/provider/package/zypper.rb
@@ -41,7 +41,7 @@ class Chef
when /^Version *: (.+) *$/
candidate_version = $1.strip
Chef::Log.debug("#{new_resource} version #{candidate_version}")
- when /^Installed *: Yes *$/
+ when /^Installed *: Yes *(\(automatically\))?$/ # http://rubular.com/r/qhPeO6vP9h
is_installed = true
Chef::Log.debug("#{new_resource} is installed")
when /^Status *: out-of-date \(version (.+) installed\) *$/