Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Compat 0.42.0
URIParser 0.0.3
@unix HTTPClient 0.0.0
LibExpat 0.2.8
Libz
CodecZlib 0.4
BinDeps 0.3
SHA
4 changes: 2 additions & 2 deletions src/WinRPM.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if isunix()
using HTTPClient.HTTPC
end

using Libz, LibExpat, URIParser
using CodecZlib, LibExpat, URIParser

import Base: show, getindex, wait_close, pipeline_error

Expand Down Expand Up @@ -153,7 +153,7 @@ function update(ignorecache::Bool=false, allow_remote::Bool=true)
warn("received error $(data[2]) while downloading $source/$path")
return nothing
end
body = gunzip ? Libz.decompress(convert(Vector{UInt8},data[1])) : data[1]
body = gunzip ? transcode(GzipDecompressor, convert(Vector{UInt8}, data[1])) : data[1]
open(path2, "w") do f
write(f, body)
end
Expand Down