aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/update.rb
diff options
context:
space:
mode:
authorXu Cheng2015-08-06 22:51:32 +0800
committerXu Cheng2015-08-06 22:51:36 +0800
commit09e0bcf1fc67728b9b87dae3dc632c07b34a78eb (patch)
tree1465c5ec60c56da0cdc49f18ce06247f7d9cd32b /Library/Homebrew/cmd/update.rb
parent7c72b0c68a8ee4dfe3d5b5b922d21519c584a3bf (diff)
downloadbrew-09e0bcf1fc67728b9b87dae3dc632c07b34a78eb.tar.bz2
update: loading core files at the beginning
This should help to prevent similar situation of Homebrew/homebrew#42553 happening in the future.
Diffstat (limited to 'Library/Homebrew/cmd/update.rb')
-rw-r--r--Library/Homebrew/cmd/update.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index e50443fad..061cd4a32 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update.rb
@@ -1,4 +1,5 @@
require "cmd/tap"
+require "formula_versions"
module Homebrew
def update
@@ -201,7 +202,6 @@ class Updater
when "M"
file = repository.join(src)
begin
- require "formula_versions"
formula = Formulary.factory(file)
new_version = formula.pkg_version
old_version = FormulaVersions.new(formula).formula_at_revision(@initial_revision, &:pkg_version)