[DRE-commits] r3560 - packages/thin/trunk/debian/patches
Ryan Niebur
ryan52-guest at alioth.debian.org
Tue May 19 01:22:58 UTC 2009
Author: ryan52-guest
Date: 2009-05-19 01:22:58 +0000 (Tue, 19 May 2009)
New Revision: 3560
Modified:
packages/thin/trunk/debian/patches/fix-path
Log:
fix my patch to check if the file exists instead of catching all LoadErrors
Modified: packages/thin/trunk/debian/patches/fix-path
===================================================================
--- packages/thin/trunk/debian/patches/fix-path 2009-05-19 00:42:22 UTC (rev 3559)
+++ packages/thin/trunk/debian/patches/fix-path 2009-05-19 01:22:58 UTC (rev 3560)
@@ -8,9 +8,9 @@
# Thin command line interface script.
# Run <tt>thin -h</tt> to get more usage.
-require File.dirname(__FILE__) + '/../lib/thin'
-+begin
++if File.exists?(File.dirname(__FILE__) + '/../lib/thin.rb')
+ require File.dirname(__FILE__) + '/../lib/thin.rb'
-+rescue LoadError
++else
+ require '/usr/lib/ruby/1.8/thin.rb'
+end
More information about the Pkg-ruby-extras-commits
mailing list