diff options
author | Tim Smith <tsmith@chef.io> | 2020-04-18 17:35:00 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-04-18 18:08:20 -0700 |
commit | 377eb265345abf5a7fea1e1feee890e3552b3f29 (patch) | |
tree | 2fd25cf9de9fd93af5421cbfc4499bb3aa972d89 | |
parent | a9e577fe64de98aa83ccc088e860271a95538d36 (diff) | |
download | chef-pacman_multipackage.tar.gz |
Update lib/chef/provider/package/pacman.rb
pacman_multipackage
Signed-off-by: Tim Smith <tsmith@chef.io>
Co-Authored-By: pete higgins <pete@peterhiggins.org>
-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 |