aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/update-report.rb
AgeCommit message (Collapse)Author
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.
2016-06-22update-report: remove unconditional cask/formula uninstall.Mike McQuaid
2016-06-22update-report: migrate formulae to casks. (#375)Anastasia Sulyagina
2016-06-01update-report: improve cache migration messaging.Mike McQuaid
2016-06-01update-report: recreate migration_attempted_file.Mike McQuaid
If the deletion of `HOMEBREW_CACHE` fails then the `.migration_attempted` file will have still been deleted so ensure it is recreated.
2016-06-01update-report: fix Mavericks check.Mike McQuaid
2016-06-01Move HOMEBREW_CACHE to ~/Library/Caches (#292)Mike McQuaid
* cleanup: accept cache as an argument. * config: move default HOMEBREW_CACHE to ~/Library. * brew.1: document new default Homebrew cache. * update-report: migrate legacy Homebrew cache.
2016-05-03update: improve some edge cases.Mike McQuaid
- When running `brew update` and there’s been no changes from upstream on any repositories there’s no need to call the (relatively) slow `brew update-report` when we already know what it will say (“Already up-to date.”). - When any`git fetch`es fail then throw out an error at the end of the output and produce a failing exit code (closes #65).
2016-05-01add `brew analytics` command (#173)Xu Cheng
2016-04-26Analytics: Separate user-supplied and internal-use DISABLE_ANALYTICS (#155)Andrew Janke
This prevents `brew` self-calls from interacting with the stickiness of HOMEBREW_NO_ANALYTICS being persisted to the brew repo and accidentally disabling analytics permanently when it should have been for just one run, while restoring the stickiness of an explicit user-supplied HOMEBREW_NO_ANALYTICS.
2016-04-25More analytics tweaks.Mike McQuaid
Provide a single command that can be run to disable analytics, run it if `HOMEBREW_NO_ANALYTICS` is ever set and remove the user UUID file in that case too. References https://github.com/Homebrew/brew/issues/142.
2016-04-25Point to analytics documentation on brew update.Mike McQuaid
Make sure that users are notified on the first run of `brew update` after we enabled analytics about how it works and how to opt-out. This will be shown to all users who have not already seen this message from `brew update` or through a new Homebrew installation. References https://github.com/Homebrew/install/pull/42 References https://github.com/Homebrew/brew/issues/142
2016-04-11Auto-update when running `brew install`/`upgrade`.Mike McQuaid
Also, slightly tweak the behavior of `brew update` in this case so that it doesn't print annoying output and still allows the `brew edit` flow for people with `HOMEBREW_DEVELOPER` set.
2016-04-02update-report: update for core/formula separationXu Cheng
Update the report logic, since now all formulae are in the taps.
2016-04-02remove migrate_tapsXu Cheng
We don't need to migrate the tapped formulae from symlink-based to directory-based structure any more. Instead, we add core tap install check for `brew update-report` which will be invoked by `brew update`.
2016-03-07rename CoreFormulaRepository to CoreTapXu Cheng
Core tap will be separated from core code in the near future. It makes sense to rename it to CoreTap.
2016-02-25update-report: fix new_full_name in reportXu Cheng
2016-02-25update-report: refactoringXu Cheng
* Better variable/class name. `update-report` isn't response to actual update. * Use abstraction offered by Reporter and ReproterHub class. * Failure on one tap won't affect migration preformed by other taps. * Simplify logic and prepare for core/formula separation.
2016-02-25update-report: refactoring ReporterHubXu Cheng
* Better variable/class name. * Remove obsolete update_renamed, this is now handled inside each reporter. * Remove obsolete formula file path to name computation, which is also handled by reporter. * Hide low lever implementation detail to offer better abstraction. Use `add(reporter)` instead of `Hash#update` to add new report.
2016-02-25update-report: use tap inside ReporterXu Cheng
* Avoid tons of unnecessary file path manipulation. Use abstraction offered by Tap class if possible. * Handle formula rename/tap migration inside reporter in per tap basis. * Avoid duplicated computation. * Remove redundant/dead code.
2016-01-26update-report: don't duplicate "already updated".Mike McQuaid
This would be displayed more than once when verbose output was enabled. Closes Homebrew/homebrew#48469.
2016-01-25update-bash: release to non-developers.Mike McQuaid
Allow people to run this command (so we can ask people to test it) without having to set `HOMEBREW_DEVELOPER`. Closes Homebrew/homebrew#48260. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-21update: implement rename_taps_dir_if_necessary in bashXu Cheng
rename_taps_dir_if_necessary must be performed before actual update. Otherwise, it will report that `HOMEBREW_UPDAET_BEFORE<REPO_VAR>` is unset.
2016-01-21update: improve repo_varXu Cheng
* use HOMEBREW_REPOSITORY instead of HOMEBREW_PREFIX * better performance: * update-bash: avoid shellout * update-report: use strip_prefix and tr * more robust: * explicitly handle the case when repo is HOMEBREW_REPOSITORY to avoid to handle the trailing backslash. * handle both lower case and upper case when stripping non alpha and digital characters.
2016-01-21update-report: skip non git tapXu Cheng
2016-01-17Add new update-bash command for testing.Mike McQuaid
This will become the default updater at a later point in the future.