Commit d20067a1 authored by supechicken's avatar supechicken Committed by GitHub

Fix .deb unarchive algorithm (#5931)

* Add files via upload

* Add exception switch back

* Bump version
parent 4706deee
......@@ -769,7 +769,18 @@ def unpack(meta)
system "tar x#{@verbose}f #{meta[:filename]} -C #{@extract_dir}", exception: true
when /\.deb$/i
puts "Unpacking archive using 'ar', this may take a while..."
system "ar -p #{meta[:filename]} data.tar.xz | xz -dc#{@verbose} | tar x#{@verbose} -C #{@extract_dir}", exception: true
suffix = `ar -t #{meta[:filename]}`.scan(/data.(.*)/)[0][0]
case suffix
when 'tar.xz'
tar_opt = '--xz'
when 'tgz', 'tar.gz'
tar_opt = '--gzip'
when 'bzip2'
tar_opt = '--bzip2'
end
system "ar -p #{meta[:filename]} data.#{suffix} | tar x#{@verbose} #{tar_opt} -C #{@extract_dir}", exception: true
when /\.AppImage$/i
puts "Unpacking 'AppImage' archive, this may take a while..."
FileUtils.chmod 0o755, meta[:filename], verbose: @fileutils_verbose
......
# Defines common constants used in different parts of crew
CREW_VERSION = '1.11.5'
CREW_VERSION = '1.11.6'
ARCH_ACTUAL = `uname -m`.strip
# This helps with virtualized builds on aarch64 machines
......
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