aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-12-09 14:22:35 -0500
committerJack Nagel2014-12-09 14:22:44 -0500
commit609c97926646a9652fac7ec789dc8a7d50eb72ef (patch)
tree83abd51a67425829ffbe97912d5f36cdd0caf185 /Library
parentfb69ad92598d074319170ff61a8e6ab016829fc2 (diff)
downloadhomebrew-609c97926646a9652fac7ec789dc8a7d50eb72ef.tar.bz2
qt5: prefer cached_location method over @clone ivar
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/qt5.rb6
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