aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-02-02 22:27:21 -0800
committerAdam Vandenberg2010-02-02 22:27:21 -0800
commit348f9ca3291013a6b65a1b0302868f814ff2e60f (patch)
tree577c5f29e2eda41b940b9210125ca4f5acb61d79 /Library
parent2bf123a5ff5bce64783daa6eae272087e479a25d (diff)
downloadhomebrew-348f9ca3291013a6b65a1b0302868f814ff2e60f.tar.bz2
Fix @dl in custom strategies.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/freeimage.rb2
-rw-r--r--Library/Formula/tex-live.rb6
2 files changed, 4 insertions, 4 deletions
diff --git a/Library/Formula/freeimage.rb b/Library/Formula/freeimage.rb
index 1aba29884..d988a4eb5 100644
--- a/Library/Formula/freeimage.rb
+++ b/Library/Formula/freeimage.rb
@@ -3,7 +3,7 @@ require 'formula'
class FreeimageHttpDownloadStrategy <CurlDownloadStrategy
def stage
# need to convert newlines or patch chokes
- safe_system '/usr/bin/unzip', '-aqq', @dl
+ safe_system '/usr/bin/unzip', '-aqq', @tarball_path
chdir
end
end
diff --git a/Library/Formula/tex-live.rb b/Library/Formula/tex-live.rb
index 9f444e49a..f258c7646 100644
--- a/Library/Formula/tex-live.rb
+++ b/Library/Formula/tex-live.rb
@@ -4,11 +4,11 @@ class CurlXZDownloadStrategy < CurlDownloadStrategy
def stage
# As far as I can tell, the LZMA format does not have any magic header bits that we could use to
# identify LZMA archives in the CurlDownloadStrategy, so use this awesome hack
- safe_system "lzma -k --force --stdout --decompress #{@dl} | /usr/bin/tar x"
+ safe_system "lzma -k --force --stdout --decompress #{@tarball_path} | /usr/bin/tar x"
# You could also do this, but it leaves the tar file lying around...
- #safe_system '/usr/local/bin/lzma', '-k', '--force', '--decompress', @dl
- #safe_system '/usr/bin/tar', 'xf', @dl.to_s.gsub( ".lzma", "" )
+ #safe_system '/usr/local/bin/lzma', '-k', '--force', '--decompress', @tarball_path
+ #safe_system '/usr/bin/tar', 'xf', @tarball_path.to_s.gsub( ".lzma", "" )
chdir
end
end