aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-12-09 20:37:29 -0500
committerJack Nagel2014-12-09 20:37:29 -0500
commitbaa1954c33088dc7dce524dcef496d94e3f2398d (patch)
tree9397123ca46dd5c18892a1da5db5caaf26892a2f /Library/Formula
parent1ca91d54b03aae0e5530c1da3252b45fc2b36a48 (diff)
downloadhomebrew-baa1954c33088dc7dce524dcef496d94e3f2398d.tar.bz2
mat: simplify download strategy
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mat.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/Library/Formula/mat.rb b/Library/Formula/mat.rb
index 1adbe4c68..df36ab2fa 100644
--- a/Library/Formula/mat.rb
+++ b/Library/Formula/mat.rb
@@ -5,14 +5,8 @@ require "formula"
# into "mat-cli" here.
class MatDownloadStrategy < CurlDownloadStrategy
def stage
- if tarball_path.compression_type == :xz
- with_system_path do
- safe_system "#{xzpath} -dc \"#{tarball_path}\" | tar xf - -s ',/mat$,/mat-cli,'"
- end
- chdir
- else
- super
- end
+ with_system_path { safe_system "#{xzpath} -dc \"#{tarball_path}\" | tar xf - -s ',/mat$,/mat-cli,'" }
+ chdir
end
end