diff options
| author | Mike McQuaid | 2016-09-20 08:02:52 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-09-20 08:02:52 +0100 |
| commit | 1f128331b61e50cb9e3c50b759cd1f328960061d (patch) | |
| tree | c50e442731616251d065626b6b63e5fc0d7b4b3f /Library/Homebrew/cmd/update-report.rb | |
| parent | e22610aedd550cb5577dd08cedb7a5609d0ff0b8 (diff) | |
| download | brew-1f128331b61e50cb9e3c50b759cd1f328960061d.tar.bz2 | |
update-report: don't migrate on auto-update.
Diffstat (limited to 'Library/Homebrew/cmd/update-report.rb')
| -rw-r--r-- | Library/Homebrew/cmd/update-report.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/update-report.rb b/Library/Homebrew/cmd/update-report.rb index c37a181c9..e6a3f8ced 100644 --- a/Library/Homebrew/cmd/update-report.rb +++ b/Library/Homebrew/cmd/update-report.rb @@ -99,8 +99,10 @@ module Homebrew Homebrew.failed = true if ENV["HOMEBREW_UPDATE_FAILED"] - # This should always be the last thing to run - migrate_legacy_repository_if_necessary + # This should always be the last thing to run (but skip on auto-update). + unless ARGV.include?("--preinstall") + migrate_legacy_repository_if_necessary + end end private |
