diff options
| author | Jack Nagel | 2014-12-10 00:53:57 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-12-10 00:53:57 -0500 |
| commit | 576258a00a6bf0ca29a3c32f79e4d52ed7a57cd0 (patch) | |
| tree | b3e9e31050bf0ff4d984239cebe667fc5a9bfd4f /Library/Formula | |
| parent | 0f428cd12ac0a08e7e08bc07a68893a7ed66de0c (diff) | |
| download | homebrew-576258a00a6bf0ca29a3c32f79e4d52ed7a57cd0.tar.bz2 | |
Prefer cached_location over tarball_path
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mat.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/rpm.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/mat.rb b/Library/Formula/mat.rb index df36ab2fa..b2bb67ea2 100644 --- a/Library/Formula/mat.rb +++ b/Library/Formula/mat.rb @@ -5,7 +5,7 @@ require "formula" # into "mat-cli" here. class MatDownloadStrategy < CurlDownloadStrategy def stage - with_system_path { safe_system "#{xzpath} -dc \"#{tarball_path}\" | tar xf - -s ',/mat$,/mat-cli,'" } + with_system_path { safe_system "#{xzpath} -dc \"#{cached_location}\" | tar xf - -s ',/mat$,/mat-cli,'" } chdir end end diff --git a/Library/Formula/rpm.rb b/Library/Formula/rpm.rb index b07263d7c..0d685c9c4 100644 --- a/Library/Formula/rpm.rb +++ b/Library/Formula/rpm.rb @@ -7,7 +7,7 @@ class RpmDownloadStrategy < CurlDownloadStrategy end def stage - safe_system "rpm2cpio.pl <#{tarball_path} | cpio -vi #{@tarball_name}" + safe_system "rpm2cpio.pl <#{cached_location} | cpio -vi #{@tarball_name}" safe_system "/usr/bin/tar -xzf #{@tarball_name} && rm #{@tarball_name}" chdir end |
