Merge pull request #1035 from MikeMcQuaid/no-auto-update-migration
No auto update migration
This commit is contained in:
commit
f78b737d9b
@ -99,9 +99,11 @@ module Homebrew
|
|||||||
|
|
||||||
Homebrew.failed = true if ENV["HOMEBREW_UPDATE_FAILED"]
|
Homebrew.failed = true if ENV["HOMEBREW_UPDATE_FAILED"]
|
||||||
|
|
||||||
# This should always be the last thing to run
|
# This should always be the last thing to run (but skip on auto-update).
|
||||||
|
unless ARGV.include?("--preinstall")
|
||||||
migrate_legacy_repository_if_necessary
|
migrate_legacy_repository_if_necessary
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
@ -300,6 +302,11 @@ module Homebrew
|
|||||||
link_src_dst_dirs(repository/"share/zsh/site-functions",
|
link_src_dst_dirs(repository/"share/zsh/site-functions",
|
||||||
HOMEBREW_PREFIX/"share/zsh/site-functions", command)
|
HOMEBREW_PREFIX/"share/zsh/site-functions", command)
|
||||||
link_path_manpages(repository/"share", command)
|
link_path_manpages(repository/"share", command)
|
||||||
|
rescue => e
|
||||||
|
ofail <<-EOS.undent
|
||||||
|
Failed to link all completions, docs and manpages:
|
||||||
|
#{e}
|
||||||
|
EOS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user