diff options
Diffstat (limited to 'lib/chef/provider/package/pacman.rb')
-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 |