]> git.cworth.org Git - sup/commitdiff
minor crypto bugfix
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 15 Sep 2007 05:27:24 +0000 (05:27 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 15 Sep 2007 05:27:24 +0000 (05:27 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@580 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/crypto.rb

index 456241208e5901ee0b5f224b4c9f0b624cd0bd0f..c7f7311a4fab060a65898eed2f569ecdbe42f01e 100644 (file)
@@ -34,14 +34,14 @@ class CryptoManager
     if gpg_output =~ /^gpg: (.* signature from .*$)/
       $? == 0 ? [:valid, $1, lines] : [:invalid, $1, lines]
     else
-      unknown
+      unknown lines
     end
   end
 
 private
 
-  def unknown
-    [:unknown, "Unable to determine validity of cryptographic signature", []]
+  def unknown lines=[]
+    [:unknown, "Unable to determine validity of cryptographic signature", lines]
   end
 end
 end