diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-23 15:32:37 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-23 15:32:37 +0000 |
commit | b1186bf39f4e9451b1c743ff8793034705f2dfa8 (patch) | |
tree | a5fbd5fb35f0708f47ccd78c57283d7f0c91065f | |
parent | 694185bf7f8a5593b210512b5dbdc2ad256a8d2f (diff) | |
download | ruby-b1186bf39f4e9451b1c743ff8793034705f2dfa8.tar.gz |
* tool/extlibs.rb (do_extract): decompress!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rwxr-xr-x | tool/extlibs.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/extlibs.rb b/tool/extlibs.rb index a8554b3de2..09db055983 100755 --- a/tool/extlibs.rb +++ b/tool/extlibs.rb @@ -41,13 +41,13 @@ def do_extract(cache, dir) 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 |