Commit b3ef05a5fe6e164ee937d91694c253a982889812

Thomas de Grivel 2023-03-02T16:17:37

rbpkg_ci_mux

diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index ae1f0ac..2988cd0 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -117,6 +117,7 @@ EOF
     log = {}
     Dir.chdir("#{Rbpkg.ci_dir}/log") do
       Dir["*/*"].each do |d|
+        puts "ci_mux_log_hosts d=#{d.inspect}"
         if File.directory?(d)
           Dir.chdir(d) do
             Dir["*/*.log"].each do |subdir_file|
@@ -135,9 +136,7 @@ EOF
                 log_item = {log: "#{d}/#{subdir_file}",
                             html: html,
                             status: status[name][d_name]}
-                if ! log[name]
-                  log[name] = {}
-                end
+                log[name] = {} unless log[name]
                 log[name][d_name] = log_item
               end
             end