aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/upgrade.rb
AgeCommit message (Collapse)Author
2018-02-09Format identifiers in oh1Chayoung You
2018-02-05Make pinning more robustMike McQuaid
Don’t autoremove pins on uninstall or upgrade and note this in the manpage.
2018-01-21upgrade --all: use odeprecated.Mike McQuaid
2018-01-10reinstall/upgrade: stop unlinked kegs being stickyMike McQuaid
It's not possible to determine the difference between a non-keg-only keg that failed to link and one that wasn't linked by us intentionally. To avoid additional complexity of storing this logic in another place let's back out this relatively new functionality; sticky keg-only links is a better and more desirable behaviour anyway.
2018-01-09upgrade: fix UnsatisfiedRequirements exit code.Mike McQuaid
2018-01-08upgrade: skip formula if upgrade fails.Mike McQuaid
Rather than blocking the rest of the formulae from being installed by `brew upgrade` print the requirement failure messages (already done) and an error stating requirements weren't satisfied and then continue to upgrade the rest of the formulae.
2017-12-30reinstall/upgrade: document use of options.Mike McQuaid
To avoid user confusion e.g. #3606.
2017-12-02Rename whole build_options block (copypaste from reinstall)L. E. Segovia
2017-12-02Delete `--ignore-dependencies` additionsL. E. Segovia
2017-12-02Let the upgrade command add new build flagsL. E. Segovia
2017-12-02Remember `--ignore-dependencies` when installing and upgradingL. E. Segovia
2017-10-18Use “squiggly” heredocs.Markus Reiter
2017-10-08Clean up code style and remove `.rubocop_todo.yml`.Markus Reiter
2017-07-30Tweak preserve link status on reinstall/upgrade.Mike McQuaid
Treat a `brew install` command as normal i.e. link by default unless keg-only and only specify whether a keg should be linked when upgrading or reinstalling. Also, adjust the naming accordingly so it's more obvious that this is the case.
2017-07-30Preserve link status on reinstall/upgrade.Mike McQuaid
This means if a user has manually `brew unlink` or `brew link --force`d something then that status will be preserved after they `brew upgrade` or `brew reinstall` that formula. This generally should make things that are keg-only by default easier to swallow.
2017-07-28formula_installer: simplify callers.Mike McQuaid
There's a bunch of duplication going on that's not really necessary.
2017-03-31upgrade: perform rename migrations when needed.Mike McQuaid
2017-03-17upgrade: keg_only before non-keg_only formulaeilovezfs
Avoids unnecessary conflicts when a previously non-keg_only formula is in the way by prioritizing keg_only before non-keg_only formulae. This change is motivated by the upgrade of gnupg 2.0 to 2.1, since the latter no longer depends on the gpg-agent formula, which, even if made keg_only, still causes the link step to fail for 2.1, as gpg-agent's non-keg version won't have been upgraded to the keg_only version at that point (alphabetically gnupg precedes gpg-agent).
2017-03-11Add `Formatter::pluralize`.Markus Reiter
2017-01-18formula_installer: use attr_accessor for installed_*Mike McQuaid
2017-01-18upgrade: temporarily comment out for fix.Mike McQuaid
2017-01-18upgrade: tab installed_{as_dependency,on_request}Mike McQuaid
2016-12-10reinstall/upgrade/install: always output options.Mike McQuaid
This is both easier for debugging and to communicate with users what is being done.
2016-11-12Filter formula build options based on those that exist.Mike McQuaid
If `--with-foo` is provided to a formula through a tab or through another formula depending on it and this option does not exist it should be filtered. If it is not (the prior behaviour) then this can prevent bottles being used unnecessarily. Fixes #1399.
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>