aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJack Nagel2011-08-26 14:30:27 -0500
committerJack Nagel2011-12-09 16:16:46 -0600
commitffd5b7d7ab9b616408d00b895f4ec0b2d38f6dd4 (patch)
treebeeae79d6b16373055e7a2b6c5871623a4b2f699 /Library/Homebrew/test
parentdb02ad1acc3c302cb80c1bb7e39ec07cee8a1cf5 (diff)
downloadbrew-ffd5b7d7ab9b616408d00b895f4ec0b2d38f6dd4.tar.bz2
Add support for xz-compressed tarballs
Rationale: some software (e.g. GNU Coreutils, GnuTLS 3.x), have started distributing _only_ xz-compressed tarballs. There is no system XZ utility provided by OS X, but it is necessary so that we can continue to provide formulae for this software. If XZUtils isn't installed, we abort and prompt the user to `brew install xz`. The `xz` command itself doesn't do any untarring, so we write the decompressed archive to stdout and pipe it to tar.
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_bucket.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_bucket.rb b/Library/Homebrew/test/test_bucket.rb
index 010c06761..f328dacca 100644
--- a/Library/Homebrew/test/test_bucket.rb
+++ b/Library/Homebrew/test/test_bucket.rb
@@ -32,8 +32,10 @@ class BeerTasting < Test::Unit::TestCase
assert_nothing_raised do
MockFormula.new 'test-0.1.tar.gz'
MockFormula.new 'test-0.1.tar.bz2'
+ MockFormula.new 'test-0.1.tar.xz'
MockFormula.new 'test-0.1.tgz'
MockFormula.new 'test-0.1.bgz'
+ MockFormula.new 'test-0.1.txz'
MockFormula.new 'test-0.1.zip'
end
end