[csw-devel] SF.net SVN: opencsw:[407] catalog_signatures/lib/csw/gpg_daemon.rb

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Thu Jul 21 05:01:03 CEST 2011


Revision: 407
          http://opencsw.svn.sourceforge.net/opencsw/?rev=407&view=rev
Author:   bdwalton
Date:     2011-07-21 03:01:03 +0000 (Thu, 21 Jul 2011)

Log Message:
-----------
correct the use of $? for exit status from gpg command

Signed-off-by: Ben Walton <bwalton at artsci.utoronto.ca>

Modified Paths:
--------------
    catalog_signatures/lib/csw/gpg_daemon.rb

Modified: catalog_signatures/lib/csw/gpg_daemon.rb
===================================================================
--- catalog_signatures/lib/csw/gpg_daemon.rb	2011-07-21 03:00:41 UTC (rev 406)
+++ catalog_signatures/lib/csw/gpg_daemon.rb	2011-07-21 03:01:03 UTC (rev 407)
@@ -22,7 +22,7 @@
     if p
       cmd = "#{@gpg} --#{mode} '#{p}'"
       content = `#{cmd}`
-      if $?.eql?(0)
+      if $?.exitstatus.eql?(0)
         response.status = 200
         response.body = content
       else


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list