summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-04-18 17:35:00 -0700
committerTim Smith <tsmith84@gmail.com>2020-04-20 12:21:28 -0700
commit40e7fb2153e3f2f06d08782295b00bb53e66396e (patch)
tree5d46e2f011231881446ae726a1abaafb92cc31fc
parent1c4cd5aff695a8d93eb54df51aa8481b392b23d8 (diff)
downloadchef-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>
-rw-r--r--lib/chef/provider/package/pacman.rb2
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