aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/upgrade.rb
AgeCommit message (Collapse)Author
2016-10-02Use `module_function` for commands.Markus Reiter
2016-10-01upgrade: tell people that --all is a no-op.Mike McQuaid
Apparently this is still run by people so let's tell them to save some typing.
2016-09-19Fix `brew style` from #971.Mike McQuaid
2016-09-18upgrade, outdated: follow alias changesAlyssa Ross
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-11cmd/upgrade: fix Rubocop warnings.Mike McQuaid
2016-08-11Update --fetch-HEAD documentationVlad Shablinsky
2016-08-06Update upgrade/outdated documentation (#650)Uladzislau Shablinski
2016-08-06Update upgrade/outdated methods for head versionsVlad Shablinsky
Introduce `--fetch-HEAD` option. Without this option upgrade and outdated never fetch latest upstream commit to detect if HEAD is outdated -- tabs are used instead. However, if option is passed, we fetch commit from upstream, which is more time consuming, but we can be sure that version is up-to-date or outdated.
2016-08-05various: eliminate the usage of `any?` (#638)Xu Cheng
`any?` is not the opposite of `empty?`. Besides the case that `[false, nil].any?` will return false, `any?`(O(n)) has much worse performance than `empty?`(O(1)).
2016-07-29Add missing development_tools requires.Mike McQuaid
2016-07-18remove unnecessary `Tab.for_formula`Xu Cheng
We already loaded tab in ARGV.resolved_formulae or Formulary.from_rack
2016-07-06development_tools: add installed? method. (#455)Mike McQuaid
2016-05-06brew install: make -s apply only to given formula, not deps (#205)Andrew Janke
2016-04-10Add all the top level commentsMax Nordlund
2016-01-04cleanup: move code away from cmd/Baptiste Fontaine
Closes Homebrew/homebrew#47484. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-11-29upgrade: use installed_kegsXu Cheng
2015-11-27formula: refactor outdated handling, add to hash.Mike McQuaid
2015-10-07brew upgrade: provides an option `--cleanup`Rakesh
Closes Homebrew/homebrew#44305. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-21Merge bottle install without Xcode branchMisty De Meo
Merge branch 'bottle_hooks'
2015-08-21Add guards to calls that would trigger Xcode install requestsWilliam Woodruff
add guard in Formula#file_modified? to prevent git popup add guard in Superenv.bin before calling MacOS::Xcode.version add guard against missing Xcode/CLT in Xcode.uncached_version return nil instread of 0 in uncached_version when Xcode/CLT are not present, to distinguish from linuxbrew behavior checks against pour_bottle? and needs_relocation?, add guard around keg.relocate_install_names to check pour_bottle?/needs_relocation? as well needs_relocation? becomes skip_relocation?, use cellar attr to indicate relocation instead of does_not_need_relocation MacOS.can_build? becomes MacOS.has_apple_developer_tools?
2015-08-21FormulaInstaller: add prevent_build_flags to eliminate code repetitionWilliam Woodruff
remove unneeded definition change variable in FormulaInstaller.check_build_flags from bf to build_flags
2015-08-21Install: add BuildToolsError and BuildFlagsErrorWilliam Woodruff
Add these new errors, and guards in formula installation and cmd/{,un,re}install to match, move can_build? to the MacOS module, flatten conditions, remove redundant can_build? check reinstate removed (doctor) check
2015-08-09put caveats in finish after post_install Homebrew/homebrew#42565Rafael Kitover
When running brew -v install, long post_install output from the formula, presumably from upstream, may hide the important instructions in the caveats and confuse the user. For example, postgresql runs initdb which prints its own instructions for running the database, making the caveats scroll off screen. Per xu-cheng's instructions in Homebrew/homebrew#42565 : Remove the explicit call to caveats from the install, reinstall, and upgrade commands, as well as the dependency installer code in FormulaInstaller#install_dependency , and call caveats right before the summary code in FormulaInstaller#finish . Closes Homebrew/homebrew#42565. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-05Revert "upgrade: announce usage of --all."Mike McQuaid
This reverts commit 9032f165bec3d0c7452169093fab32578816043b. This seems to have been universally unpopular so let's revert it. Closes Homebrew/homebrew#40372. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-05-29upgrade: use Formula#full_nameXu Cheng
2015-05-27upgrade: use ARGV.resolved_formulaeXu Cheng
2015-04-26upgrade: announce usage of --all.Mike McQuaid
Tell users that we will soon be migrating `--all` so it is required if you wish to upgrade all formulae. Closes Homebrew/homebrew#38572.
2015-03-24reinstall, upgrade: tweak use of tab build_bottle.Mike McQuaid
In the case where a bottle wasn't around before and is now it probably doesn't make sense to use `build-bottle` to build something that will be identical to the binary bottle package anyway. After all, when you use the bottle you will end up with something that has been built with `build-bottle` anyway (just not by you).
2015-01-04Checkout outdatedness in `brew upgrade <formula>`Jack Nagel
Fixes Homebrew/homebrew#35523.
2015-01-04Explicitly pass formulae to outdated_brewsJack Nagel
2014-11-03Make quieter an installer modeJack Nagel
2014-10-15Hide install receipt key namesJack Nagel
2014-09-14Consistently call name on formula instead of relying on to_sJack Nagel
2014-08-17Upgrade honors build_bottle? and built_as_bottle optionsLarry Shaffer
Closes Homebrew/homebrew#31628. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2014-05-26pluralize formulae in tap/untapAdam Vandenberg
Closes Homebrew/homebrew#28560.
2014-04-05Avoid realpath where it is not necessaryJack Nagel
Symlinks in opt and LinkedKegs point directly at a keg in the cellar, so only resolving one symlink should suffice, and make it clear what path we are actually interested in.
2014-03-24Check existence of target keg instead of hiding exceptionsJack Nagel
2014-03-13Make FormulaInstaller setup more readableJack Nagel
2014-03-13Make debug an installer modeJack Nagel
2014-03-13Make verbose an installer modeJack Nagel
2014-03-13Don't set installer options to their defaultJack Nagel
ignore_deps and show_header default to false.
2014-03-10Make build_from_source an explicit installer modeJack Nagel
2014-03-05Teach commands to work with revisionsJack Nagel
2014-03-04Let commands decide what mode the installer should useJack Nagel
2014-03-04Extract installer setup to prelude methodJack Nagel
2014-03-02Stop mutating build options in upgradeJack Nagel
2014-03-02Revert "Let commands decide what mode the installer should use"Jack Nagel
I'd still like to make this change, but at least for now the initializer requires ignore_deps to be set correctly. This reverts commit 881a8855b944fa9bd7dfd598bb9197f79f7a13f0.