diff options
| author | Jack Nagel | 2014-12-09 14:22:35 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-12-09 14:22:44 -0500 |
| commit | 609c97926646a9652fac7ec789dc8a7d50eb72ef (patch) | |
| tree | 83abd51a67425829ffbe97912d5f36cdd0caf185 /Library/Formula | |
| parent | fb69ad92598d074319170ff61a8e6ab016829fc2 (diff) | |
| download | homebrew-609c97926646a9652fac7ec789dc8a7d50eb72ef.tar.bz2 | |
qt5: prefer cached_location method over @clone ivar
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/qt5.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/qt5.rb b/Library/Formula/qt5.rb index 89dd933ee..49bff7040 100644 --- a/Library/Formula/qt5.rb +++ b/Library/Formula/qt5.rb @@ -4,9 +4,9 @@ class Qt5HeadDownloadStrategy < GitDownloadStrategy include FileUtils def stage - @clone.cd { reset } - safe_system "git", "clone", @clone, "." - ln_s @clone, "qt" + cached_location.cd { reset } + safe_system "git", "clone", cached_location, "." + ln_s cached_location, "qt" safe_system "./init-repository", "--mirror", "#{Dir.pwd}/" rm "qt" end |
