[DRE-commits] [gem2deb] 02/02: run_ruby: fix LIBDIR handling

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Apr 12 10:22:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository gem2deb.

commit 013021e962dbea4b5c8d3e43174177fa367a9d94
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sat Apr 11 18:09:43 2015 +0200

    run_ruby: fix LIBDIR handling
---
 lib/gem2deb.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/gem2deb.rb b/lib/gem2deb.rb
index 6a37d52..b167802 100644
--- a/lib/gem2deb.rb
+++ b/lib/gem2deb.rb
@@ -59,7 +59,8 @@ module Gem2Deb
 
   def run_ruby(ruby, *args)
     cmd = args.dup
-    if !$LOAD_PATH.include?(LIBDIR)
+    if LIBDIR != '/usr/lib/ruby/vendor_ruby'
+      # only add LIBDIR to load path is not running the installed copy
       cmd.unshift("-I", LIBDIR)
     end
     cmd.unshift(ruby)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gem2deb.git



More information about the Pkg-ruby-extras-commits mailing list