pkgsrc-ng/lang/ruby18-base/patches/patch-lib_rdoc_options.rb
2013-09-26 17:14:40 +02:00

16 lines
479 B
Ruby

$NetBSD: patch-lib_rdoc_options.rb,v 1.1 2011/03/28 14:10:25 taca Exp $
* Ignore none existing files as newer version of rdoc.
--- lib/rdoc/options.rb.orig 2008-01-11 01:24:05.000000000 +0000
+++ lib/rdoc/options.rb
@@ -573,7 +573,7 @@ class Options
def check_files
@files.each do |f|
- stat = File.stat f rescue error("File not found: #{f}")
+ stat = File.stat f rescue next
error("File '#{f}' not readable") unless stat.readable?
end
end