aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-12-07 16:26:22 -0200
committerSilvio Rhatto <rhatto@riseup.net>2014-12-07 16:26:22 -0200
commit60164776c3be5d43c63e2c7ba485cc81fc74fc4b (patch)
treef1233cdc5c80a1abbe55e752c694e196ab09a8d8
parent1c5f67e45944d85550055e0216ef4b0a379e1393 (diff)
downloadleap_cli-debian.tar.gz
leap_cli-debian.tar.bz2
Adds 20-require-load-path.patchdebian
-rw-r--r--debian/patches/20-require-load-path.patch15
-rw-r--r--debian/patches/series1
2 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/20-require-load-path.patch b/debian/patches/20-require-load-path.patch
new file mode 100644
index 0000000..f862fc2
--- /dev/null
+++ b/debian/patches/20-require-load-path.patch
@@ -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
+
diff --git a/debian/patches/series b/debian/patches/series
index 328a243..51fafa9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+20-require-load-path.patch
10-require-rubygems.patch