ruby-changes:36864
From: usa <ko1@a...>
Date: Wed, 24 Dec 2014 00:33:05 +0900 (JST)
Subject: [ruby-changes:36864] usa:r48945 (trunk): * tool/extlibs.rb (do_extract): decompress!
usa 2014-12-24 00:32:37 +0900 (Wed, 24 Dec 2014) New Revision: 48945 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48945 Log: * tool/extlibs.rb (do_extract): decompress! Modified files: trunk/tool/extlibs.rb Index: tool/extlibs.rb =================================================================== --- tool/extlibs.rb (revision 48944) +++ tool/extlibs.rb (revision 48945) @@ -41,13 +41,13 @@ def do_extract(cache, dir) https://github.com/ruby/ruby/blob/trunk/tool/extlibs.rb#L41 ext = File.extname(cache) case ext when '.gz', '.tgz' - f = IO.popen(["gzip", "-c", cache]) + f = IO.popen(["gzip", "-dc", cache]) cache = cache.chomp('.gz') when '.bz2', '.tbz' - f = IO.popen(["bzip2", "-c", cache]) + f = IO.popen(["bzip2", "-dc", cache]) cache = cache.chomp('.bz2') when '.xz', '.txz' - f = IO.popen(["xz", "-c", cache]) + f = IO.popen(["xz", "-dc", cache]) cache = cache.chomp('.xz') else inp = cache -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/