[DRE-commits] [gem2deb] 01/01: fix calling `gem list` when dependency resolution fails

Antonio Terceiro terceiro at moszumanska.debian.org
Wed Aug 19 22:25:35 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 223bd80bb0693465958dce7a67b22f3dc507fc5a
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Thu Aug 20 00:12:00 2015 +0200

    fix calling `gem list` when dependency resolution fails
---
 debian/changelog           | 8 ++++++++
 lib/gem2deb/test_runner.rb | 2 +-
 lib/gem2deb/version.rb     | 2 +-
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 51baa98..72b553e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+gem2deb (0.21.1) unstable; urgency=medium
+
+  * gem2deb-test-runner: fix call to `gem list` after a dependency checking
+    failure; avoid exec'ing `gem list` to be able to actually return non-0
+    from gem2deb-test-runner.
+
+ -- Antonio Terceiro <terceiro at debian.org>  Thu, 20 Aug 2015 00:11:53 +0200
+
 gem2deb (0.21) unstable; urgency=medium
 
   * dh_ruby: only ask questions interactively when called by gem2deb
diff --git a/lib/gem2deb/test_runner.rb b/lib/gem2deb/test_runner.rb
index 429b6ec..9af2498 100644
--- a/lib/gem2deb/test_runner.rb
+++ b/lib/gem2deb/test_runner.rb
@@ -79,7 +79,7 @@ module Gem2Deb
         system(env_with_gem_path, *cmd)
         exitstatus = $?.exitstatus
         if exitstatus != 0
-          run 'gem', 'list'
+          system 'gem', 'list'
           exit(exitstatus)
         end
       end
diff --git a/lib/gem2deb/version.rb b/lib/gem2deb/version.rb
index ed4612a..13d6fee 100644
--- a/lib/gem2deb/version.rb
+++ b/lib/gem2deb/version.rb
@@ -1,3 +1,3 @@
 module Gem2Deb
-  VERSION = '0.21'
+  VERSION = '0.21.1'
 end

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