aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/update-report.rb
AgeCommit message (Collapse)Author
2016-11-26update-report: allow skipping analytics message.Mike McQuaid
This is used by the install script so it can simplify it's logic and make the analytics messaging more prominent.
2016-11-26update-report: further tweak analytics output.Mike McQuaid
There were some bugs with the use of `HOMEBREW_NO_ANALYTICS_THIS_RUN` and some output glitches I missed with the previous PR (#1575).
2016-11-26update-report: further improve analytics messagingMike McQuaid
- Don't output the analytics message and mark it as read if `HOMEBREW_NO_ANALYTICS_THIS_RUN` is set. This mostly simplifies the installer code where we can display the message ourselves there rather than having `brew update` print it out sometimes and not others (i.e. when there's no system Git installed). - Use the shell's audible bell to nudge people to actually read this message (and give them less excuse to complain when they don't). - Add an extra newline and bold all the analytics messaging so it's more visible in the output.
2016-11-05update-report: default Caskroom moved to prefix.Mike McQuaid
Look at HOMEBREW_PREFIX rather than HOMEBREW_REPOSITORY for the default Caskroom location.
2016-10-15Convert `puts_columns` to `puts Formatter.columns`.Markus Reiter
2016-10-06“Homebrew Cask” -> “Homebrew-Cask”Markus Reiter
2016-10-04Merge pull request #1145 from reitermarkus/module-functionMarkus Reiter
Use `module_function` for `Homebrew` module.
2016-10-02update-test: fix tag updating, skip core tap.Mike McQuaid
Fix updating the `stable` branch used for tagged updates and ensure that the core tap isn’t retapped (the slowest part by far of this test).
2016-10-02Remove `private_class_method` from commands.Markus Reiter
2016-10-02Use `module_function` for commands.Markus Reiter
2016-10-01Use Formatter for all URLs.Markus Reiter
2016-10-01Refactor Tty.Markus Reiter
2016-09-24Fix Style/GuardClause.Markus Reiter
2016-09-20update-report: link new completion/docs locations.Mike McQuaid
2016-09-20update-report: migrate on newer auto-update.Mike McQuaid
If we have a `brew.sh` which has set `HOMEBREW_ENABLE_AUTO_UPDATE_MIGRATION` then let's allow an auto-update migration. That's because it contains the fix below it _before_ the update happened which means the auto-update won't fail in the same way as if updating from an old version.
2016-09-20update-report: print message on completion link failure.Mike McQuaid
2016-09-20update-report: don't migrate on auto-update.Mike McQuaid
2016-09-19update-report: Do not migrate `Caskroom` to `HOMEBREW_REPOSITORY`.Markus Reiter
2016-09-19update-report: tweak migration failure message.Mike McQuaid
2016-09-19update-report: add missing comma.Mike McQuaid
2016-09-19update-report: also migrate Caskroom.Mike McQuaid
2016-09-19update-report: tweak migration messagingMike McQuaid
References #1023.
2016-09-19Merge pull request #1011 from MikeMcQuaid/migrate-legacy-repository-everyoneMike McQuaid
update-report: migrate everyone to new repository.
2016-09-18update-report: remove cask dir after migration.Mike McQuaid
This will hang around otherwise due to e.g. running `bundle install` in here once.
2016-09-18update-report: cleanup git harder in migration.Mike McQuaid
Before stashing also try to cancel any current merge, rebase and reset. This will prevent any data loss but also make the stash more likely to succeed.
2016-09-18Merge pull request #1018 from MikeMcQuaid/update-migration-create-cellarMike McQuaid
update-report: also create Cellar on migration.
2016-09-18update-report: also create Cellar on migration.Mike McQuaid
Just on the off chance it doesn't exist (i.e. no-one has installed anything yet or you're a `test-bot` that's run `git clean -xdf` recently)
2016-09-18update-report: handle directory not existing.Mike McQuaid
This shouldn't be possible to occur after #1013 but it makes sense to add it anyway.
2016-09-18update-report: create top-level directories later.Mike McQuaid
Otherwise if they are created and empty they may be removed again before we try to create the `/usr/local/bin/brew` symlink.
2016-09-18update-report: migrate everyone to new repository.Mike McQuaid
Also migrate people without `HOMEBREW_DEVELOPER` set to the new location.
2016-09-18update-report: migrate /usr/local repository.Mike McQuaid
Migrate a HOMEBREW_REPOSITORY and HOMEBREW_PREFIX of `/usr/local` so that the HOMEBREW_REPOSITORY is now in `/usr/local/Homebrew`. This gives us more flexibility on changing the repository layout in future and avoids putting junk in `/usr/local` when not necessary (e.g. our `README.md`).
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-17Move LinkedKegs migration.Mike McQuaid
Move the `LinkedKegs` migration into `utils.rb` so it can also be called from `brew.rb` on startup.
2016-09-17Always run LinkedKegs migration (if needed).Mike McQuaid
Ensure that `brew update` always runs the LinkedKegs migration if needed as it may not have been run by `brew update` if it was using `--preinstall` or a `git pull` etc. Also, if the old paths still exist: just use them instead. Finally, always try to unlink/unpin before link/pin. Fixes https://github.com/Homebrew/homebrew-core/issues/4918.
2016-09-16Move LinkedKegs/PinnedKegs/Locks from Library.Mike McQuaid
These don't make sense to be tied to the `HOMEBREW_REPOSITORY` but instead should live in the `HOMEBREW_PREFIX` as they all relate to its state.
2016-09-11cmd/update-report: fix Rubocop warnings.Mike McQuaid
2016-09-08Add `--help` to all developer commands.Mike McQuaid
Also, flag those that we never want to be in a manpage.
2016-09-06update-report: also link docs, completions.Mike McQuaid
These are more files in the HOMEBREW_REPOSITORY that we want to link to the HOMEBREW_PREFIX.
2016-09-03update-report: add newline if preinstall updated.Mike McQuaid
Fixes #858.
2016-08-24update-report: also link `brew*.1` manpages.Mike McQuaid
Otherwise if your `HOMEBREW_PREFIX` and `HOMEBREW_REPOSITORY` are not equal then your tap manpages will be linked but your `brew*` ones will not.
2016-08-05update-report: tweak Cask migration output.Mike McQuaid
No longer output every cask under the list of changed formulae but instead create a dedicated, unprinted report section for casks and then iterate through that instead.
2016-08-05update-report: print developer exception backtraces.Mike McQuaid
2016-08-05Revert "Partially reverts 4338f35b848ad61462fc4f73e1365e6c002201a2"Mike McQuaid
This reverts commit b33b1af073979c8a699ed9688dba37fb7e74f0b5.
2016-08-05Partially reverts 4338f35b848ad61462fc4f73e1365e6c002201a2Xu Cheng
2016-08-04tap: add cask methods.Anastasia Sulyagina
2016-08-02update-report: use --overwrite to migrate Casks.Mike McQuaid
`--force` isn't quite what we want here as it'll just allow keg-only linkage whereas we want to ensure we overwrite anything the Cask installed.
2016-08-02update-report: allow Casks migration to formulae.AnastasiaSulyagina
Closes #588. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-08-02update-report: tweak cask migration text.Mike McQuaid
2016-07-16update: Don't report formulae that are moved within a tap but not renamed (#480)Josh Hagins
2016-07-03update-report: prune on cask migration. (#428)Mike McQuaid
Do this to ensure that any symlinks in the Homebrew prefix and/or in Applications are removed to stop issues with stale symlinks causing Casks from being installed correctly.