aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/download_strategy.rb
diff options
context:
space:
mode:
authorJack Nagel2014-04-06 12:34:42 -0500
committerJack Nagel2014-04-06 12:35:54 -0500
commitd460fa3f01bd7dbac0df050d267dba2f06a37e72 (patch)
tree5276b9b420df52af5282e1093861cc1b8d031211 /Library/Homebrew/download_strategy.rb
parent7398b7278370900fcfbd2e468ed49ea965a191c9 (diff)
downloadhomebrew-d460fa3f01bd7dbac0df050d267dba2f06a37e72.tar.bz2
Recognize and extract xar files
Diffstat (limited to 'Library/Homebrew/download_strategy.rb')
-rw-r--r--Library/Homebrew/download_strategy.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 29212323e..3d5f2ade1 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -172,9 +172,8 @@ class CurlDownloadStrategy < AbstractDownloadStrategy
when :lzip
with_system_path { safe_system "#{lzippath} -dc \"#{tarball_path}\" | tar xf -" }
chdir
- when :pkg
- safe_system '/usr/sbin/pkgutil', '--expand', tarball_path, basename_without_params
- chdir
+ when :xar
+ safe_system "/usr/bin/xar", "-xf", tarball_path
when :rar
quiet_safe_system 'unrar', 'x', {:quiet_flag => '-inul'}, tarball_path
when :p7zip