aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2015-07-11 14:35:37 +0100
committerMike McQuaid2015-07-11 14:36:06 +0100
commit83ab5f90bf38161b7b2e03168708242713479fe5 (patch)
tree150ca9e61357e3ec70777a41b39371cc061459a9 /Library
parentac6ee129949ab33014ec779a1e8a26d1d4de52f8 (diff)
downloadbrew-83ab5f90bf38161b7b2e03168708242713479fe5.tar.bz2
install: cleanup outdated repository warning.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/install.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index eafc5fd2c..7d97b868e 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -94,11 +94,12 @@ module Homebrew
# If they haven't updated in 48 hours (172800 seconds), that
# might explain the error
- master = HOMEBREW_REPOSITORY.join(".git", "refs", "heads", "master")
- if master.exist? && (Time.now.to_i - File.mtime(master).to_i) > 172800
+ master = HOMEBREW_REPOSITORY/".git/refs/heads/master"
+ if master.exist? && (Time.now.to_i - File.mtime(master).to_i) > 1#72800
ohai "You haven't updated Homebrew in a while."
puts <<-EOS.undent
- A formula for #{e.name} might have been added recently: run `brew update` to make sure everything's up-to-date!
+ A formula for #{e.name} might have been added recently.
+ Run `brew update` to get the latest Homebrew updates!
EOS
end
end