diff options
author | Tim Smith <tsmith@chef.io> | 2020-04-18 17:35:00 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-04-20 12:21:28 -0700 |
commit | 40e7fb2153e3f2f06d08782295b00bb53e66396e (patch) | |
tree | 5d46e2f011231881446ae726a1abaafb92cc31fc /lib/chef/provider | |
parent | 1c4cd5aff695a8d93eb54df51aa8481b392b23d8 (diff) | |
download | chef-40e7fb2153e3f2f06d08782295b00bb53e66396e.tar.gz |
Update lib/chef/provider/package/pacman.rb
Signed-off-by: Tim Smith <tsmith@chef.io>
Co-Authored-By: pete higgins <pete@peterhiggins.org>
Diffstat (limited to 'lib/chef/provider')
-rw-r--r-- | lib/chef/provider/package/pacman.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/pacman.rb b/lib/chef/provider/package/pacman.rb index d2aada6525..518b3eb010 100644 --- a/lib/chef/provider/package/pacman.rb +++ b/lib/chef/provider/package/pacman.rb @@ -42,7 +42,7 @@ class Chef repos = pacman.scan(/\[(.+)\]/).flatten end - repos = repos.map { |r| Regexp.escape(r) }.join("|") + repos = Regexp.union(repos) status = shell_out("pacman", "-Sl") unless status.exitstatus == 0 || status.exitstatus == 1 |