components/ruby/puppet/patches/puppet-07-PUP-2641.patch
author Rich Burridge <rich.burridge@oracle.com>
Tue, 02 May 2017 17:33:26 -0700
changeset 7964 d9801318ed3d
parent 7565 48aa82a0931f
permissions -rw-r--r--
25981468 Build ilmbase and openexr with the GNU compilers

In-house patch to fix upstream bug PUP-2641
https://tickets.puppetlabs.com/browse/PUP-2641
Patch has been submitted upstream but not yet accepted.

--- puppet-3.8.6/lib/puppet/application/describe.rb.orig	2016-04-19 14:29:00.513107441 -0700
+++ puppet-3.8.6/lib/puppet/application/describe.rb	2016-04-19 14:29:42.599397493 -0700
@@ -70,13 +74,8 @@
     }.each do |name|
       type = @types[name]
       s = type.doc.gsub(/\s+/, " ")
-      n = s.index(". ")
-      if n.nil?
-        s = ".. no documentation .."
-      elsif n > 45
+      if s.length > 45
         s = s[0, 45] + " ..."
-      else
-        s = s[0, n]
       end
       printf "%-15s - %s\n", name, s
     end