[DRE-commits] [SCM] gem2deb.git branch, master, updated. e54f196cd9435c5147d4b83469a2be5cf12303b1

Lucas Nussbaum lucas at lucas-nussbaum.net
Fri Mar 25 07:20:22 UTC 2011


The following commit has been merged in the master branch:
commit 8faec54253e74d003ac4951f93be16d13c5c06b0
Author: Lucas Nussbaum <lucas at lucas-nussbaum.net>
Date:   Wed Mar 23 17:08:10 2011 +0100

    fix exitstatus testing

diff --git a/lib/gem2deb.rb b/lib/gem2deb.rb
index 2e42eae..3a44342 100644
--- a/lib/gem2deb.rb
+++ b/lib/gem2deb.rb
@@ -23,7 +23,7 @@ module Gem2Deb
   def run(cmd)
     puts(cmd) if $VERBOSE
     system(cmd)
-    if $? && ($? >> 8) > 0
+    if $?.exitstatus != 0
       raise Gem2Deb::CommandFailed, "[#{cmd} failed!]"
     end
   end

-- 
gem2deb.git



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