[DRE-commits] [gem2deb] 02/04: gem2deb-test-runner: fix dependency checking during build

Antonio Terceiro terceiro at moszumanska.debian.org
Sat Jun 13 01:20:28 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 f7c301ffed23dc072b642123731f9a6fb8a57d13
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Fri Jun 12 21:50:38 2015 -0300

    gem2deb-test-runner: fix dependency checking during build
    
    s/GEMPATH/GEM_PATH/
---
 debian/changelog           | 2 ++
 lib/gem2deb/test_runner.rb | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ab0d688..33a89ca 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ gem2deb (0.18) UNRELEASED; urgency=medium
     cache (Closes: #786841)
   * dh_ruby: install gemspecs _before_ running tests so that checking
     dependencies when running tests actually works.
+  * gem2deb-test-runner: fix dependency checking during build (by fixing name
+    of Rubygems environment variable, s/GEMPATH/GEM_PATH/)
 
  -- Antonio Terceiro <terceiro at debian.org>  Fri, 12 Jun 2015 11:04:47 -0300
 
diff --git a/lib/gem2deb/test_runner.rb b/lib/gem2deb/test_runner.rb
index 1b5812b..454301a 100644
--- a/lib/gem2deb/test_runner.rb
+++ b/lib/gem2deb/test_runner.rb
@@ -91,9 +91,9 @@ module Gem2Deb
       rubylib = load_path.join(':')
       cmd.unshift(rubyver)
 
-      puts "RUBYLIB=#{rubylib} " + "GEMPATH=#{gem_path} " +  cmd.shelljoin
+      puts "RUBYLIB=#{rubylib} " + "GEM_PATH=#{gem_path} " +  cmd.shelljoin
 
-      ENV['GEMPATH'] = (ENV['GEMPATH'] ? ENV['GEMPATH'] + ':' : '') + gem_path
+      ENV['GEM_PATH'] = (ENV['GEM_PATH'] ? ENV['GEM_PATH'] + ':' : '') + gem_path
       ENV['RUBYLIB'] = (ENV['RUBYLIB'] ? ENV['RUBYLIB'] + ':' : '') + rubylib
       if autopkgtest
         move_away 'lib'

-- 
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