]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
fixed md5 problem (again)
authorelijah <elijah@riseup.net>
Tue, 23 Oct 2012 17:36:31 +0000 (10:36 -0700)
committerelijah <elijah@riseup.net>
Tue, 23 Oct 2012 17:36:31 +0000 (10:36 -0700)
lib/leap_cli/util.rb

index 6529d38f53316f036b67c0d6b23e4af1a7193f03..53bad3560723b138f07b761a3db2d620d485ed51 100644 (file)
@@ -188,7 +188,7 @@ module LeapCli
       filepath = Path.named_path(filepath)
       output = `md5sum '#{filepath}'`.strip
       if $?.to_i == 0
-        return output.split(" ").first == MD5.md5(contents).to_s
+        return output.split(" ").first == Digest::MD5.hexdigest(contents).to_s
       else
         return false
       end