From e0b40ef5d8173aff304c81f93516e1246e3c042c Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Tue, 26 May 2020 14:00:51 -0700 Subject: [PATCH] Don't convert bundler man pages from mdoc to man These man pages are already in man format and assuming they are mdoc format breaks things. Fixes [Bug #16823] --- tool/rbinstall.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index c91d4fff86..7d7dbd55f3 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -632,8 +632,13 @@ install?(:local, :comm, :man) do class << (w = []) alias print push end - open(mdoc) {|r| Mdoc2Man.mdoc2man(r, w)} - w = w.join("") + if File.basename(mdoc).start_with?('bundle') || + File.basename(mdoc).start_with?('gemfile') + w = File.read(mdoc) + else + open(mdoc) {|r| Mdoc2Man.mdoc2man(r, w)} + w = w.join("") + end if compress require 'tmpdir' Dir.mktmpdir("man") {|d|