whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Localise the size check - part 2
Date Fri, 13 Mar 2020 17:04:27 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 69706df  Localise the size check - part 2
69706df is described below

commit 69706df74d7d5801d19b69f2cbb88738a2e6acb4
Author: Sebb <sebb@apache.org>
AuthorDate: Fri Mar 13 17:04:12 2020 +0000

    Localise the size check - part 2
---
 www/secretary/workbench/views/actions/check-signature.json.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/www/secretary/workbench/views/actions/check-signature.json.rb b/www/secretary/workbench/views/actions/check-signature.json.rb
index 5327e60..e5f7195 100644
--- a/www/secretary/workbench/views/actions/check-signature.json.rb
+++ b/www/secretary/workbench/views/actions/check-signature.json.rb
@@ -38,6 +38,7 @@ def getURI(uri,file)
         end
       end
       size = File.size(file)
+      Wunderbar.warn "File: #{file} Size: #{size}"
       if size > MAX_KEY_SIZE
         raise Exception.new("File: #{file} size #{size} > #{MAX_KEY_SIZE}")
       end
@@ -106,8 +107,6 @@ begin
         begin
           tmpfile = File.join(dir, keyid)
           getURI(uri, tmpfile)
-          size = File.size(tmpfile)
-          Wunderbar.warn "File: #{tmpfile} Size: #{size}"
           out2, err2, rc2 = Open3.capture3 gpg,
             '--batch', '--import', tmpfile
           # For later analysis


Mime
View raw message