Skip to content

Commit 488bcb4

Browse files
committed
Fix some problems in indexing
1 parent d424387 commit 488bcb4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

registryindexer/main.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ asyncmap(unindexed_packageversions, ntasks=max_tasks) do v
181181
versionwithoutplus = replace(string(v.version), '+'=>'_')
182182

183183
cache_path = joinpath(cache_folder, "v1", "packages", string(uppercase(v.name[1])), "$(v.name)_$(v.uuid)")
184+
mkpath(cache_path)
184185
cache_path_compressed = joinpath(cache_path, "v$(versionwithoutplus)_$(v.treehash).tar.gz")
185186

186187
mktempdir() do path
@@ -197,10 +198,10 @@ asyncmap(unindexed_packageversions, ntasks=max_tasks) do v
197198
global count_failed_to_index += 1
198199
end
199200

200-
@info res.code
201+
# @info res.code
201202

202-
@info res.stdout
203-
@info res.stderr
203+
# @info res.stdout
204+
# @info res.stderr
204205

205206
error_filename = "v$(versionwithoutplus)_$(v.treehash).unavailable"
206207

@@ -223,7 +224,7 @@ asyncmap(unindexed_packageversions, ntasks=max_tasks) do v
223224
push!(status_db, Dict("name"=>v.name, "uuid"=>string(v.uuid), "version"=>string(v.version), "treehash"=>v.treehash, "status"=>res.code==20 ? "install_error" : res.code==10 ? "load_error" : "index_error", "indexattempts"=>[Dict("juliaversion"=>string(VERSION), "stdout"=>res.stdout, "stderr"=>res.stderr)]))
224225
end
225226

226-
@info "Files to be compressed" path readdir(path, join=true) ispath(cache_path) isfile(cache_path_compressed)
227+
# @info "Files to be compressed" path readdir(path, join=true) ispath(cache_path) isfile(cache_path_compressed)
227228

228229
open(cache_path_compressed, write=true) do tar_gz
229230
tar = GzipCompressorStream(tar_gz)

0 commit comments

Comments
 (0)