]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
Adds 20-require-load-path.patch debian
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 7 Dec 2014 18:26:22 +0000 (16:26 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 7 Dec 2014 18:26:22 +0000 (16:26 -0200)
debian/patches/20-require-load-path.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/20-require-load-path.patch b/debian/patches/20-require-load-path.patch
new file mode 100644 (file)
index 0000000..f862fc2
--- /dev/null
@@ -0,0 +1,15 @@
+Fix require for load_path.rb
+--- a/bin/leap
++++ b/bin/leap
+@@ -21,8 +21,9 @@
+   # This allows you to run the command directly while developing the gem, and also lets you
+   # run from anywhere (I like to link 'bin/leap' to /usr/local/bin/leap).
+   #
+-  base_dir = File.expand_path('..', File.dirname(File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__))
+-  require File.join(base_dir, 'lib','leap_cli','load_paths')
++  #base_dir = File.expand_path('..', File.dirname(File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__))
++  #require File.join(base_dir, 'lib','leap_cli','load_paths')
++  require '/usr/lib/ruby/vendor_ruby/leap_cli/load_paths.rb'
+   require 'leap_cli'
+ end
index 328a2431b816837f9350c6891b50d664e7b0c5ac..51fafa9f25cea32229591b8cd97af8bbeb253697 100644 (file)
@@ -1 +1,2 @@
+20-require-load-path.patch
 10-require-rubygems.patch