Commit 092ba8d0 authored by James Larrowe's avatar James Larrowe Committed by Ed Reel

Expand lzip and zip files correctly (#3232)

* Expand lzip and zip files correctly

* Bump version
parent 5e84a6f3
......@@ -449,8 +449,8 @@ def unpack (meta)
when /\.zip$/i
puts "Unpacking archive using 'unzip', this may take a while..."
_verbopt = @opt_verbose ? 'v' : 'qq'
system "unzip", _verbopt, "-d", "#{extract_dir}", meta[:filename]
when /\.(tar(\.(gz|bz2|xz))?|tgz|tbz)$/i
system "unzip", '-' + _verbopt, "-d", "#{extract_dir}", meta[:filename]
when /\.(tar(\.(gz|bz2|xz|lz))?|tgz|tbz)$/i
puts "Unpacking archive using 'tar', this may take a while..."
_verbopt = @opt_verbose ? 'v' : ''
system "tar", "x#{_verbopt}f", meta[:filename], "-C", "#{extract_dir}"
......
# Defines common constants used in different parts of crew
CREW_VERSION = '1.2.2'
CREW_VERSION = '1.2.3'
ARCH = `uname -m`.strip
ARCH_LIB = if ARCH == 'x86_64' then 'lib64' else 'lib' end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment