Mike McQuaid
0a09ae30f8
update-report: migrate /usr/local repository.
...
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-18 13:49:02 +01:00
Mike McQuaid
d70841db2b
update.sh: turn origin/branch into a variable.
...
Rather than repeating origin multiple times.
2016-09-18 13:45:32 +01:00
Mike McQuaid
3982950e61
rubocop --auto-correct all hash-rocket usage.
2016-09-17 16:14:13 +01:00
Mike McQuaid
8f1ae3b28b
Move LinkedKegs migration.
...
Move the `LinkedKegs` migration into `utils.rb` so it can also be called
from `brew.rb` on startup.
2016-09-17 15:00:46 +01:00
Mike McQuaid
8aa18510c4
Always run LinkedKegs migration (if needed).
...
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-17 13:25:32 +01:00
Mike McQuaid
e3609b6fd4
Move LinkedKegs/PinnedKegs/Locks from Library.
...
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-16 13:51:56 +01:00
Mike McQuaid
72d10fff0b
Use constants for LinkedKegs/PinnedKegs/Locks.
...
These definitions are scattered throughout the codebase which makes it
hard to refactor them later (my goal is to move them outside of
HOMEBREW_LIBRARY). Unify their definitions for clearer code and easier
movement later.
2016-09-15 18:28:42 +01:00
Zhiming Wang
54884cd9ce
Merge pull request #903 from zmwangx/always-show-dev-commands
...
cmd/commands: always show developer commands
2016-09-14 02:50:32 -04:00
Mike McQuaid
1174264d47
cmd/uses: fix Rubocop warnings.
2016-09-11 17:59:01 +01:00
Mike McQuaid
2c5beb0eff
cmd/upgrade: fix Rubocop warnings.
2016-09-11 17:59:01 +01:00
Mike McQuaid
cc526601cf
cmd/update-report: fix Rubocop warnings.
2016-09-11 17:59:01 +01:00
Mike McQuaid
49e009df29
cmd/unpack: fix Rubocop warnings.
2016-09-11 17:59:01 +01:00
Mike McQuaid
7b41ccd2ea
cmd/unlinkapps: fix Rubocop warnings.
2016-09-11 17:59:00 +01:00
Mike McQuaid
56fc1c725a
cmd/uninstall: fix Rubocop warnings.
2016-09-11 17:59:00 +01:00
Mike McQuaid
a0c29eb1af
cmd/tap-info: fix Rubocop warnings.
2016-09-11 17:59:00 +01:00
Mike McQuaid
b9b07fc082
cmd/search: fix Rubocop warnings.
2016-09-11 17:59:00 +01:00
Mike McQuaid
f9c621304d
cmd/prune: fix Rubocop warnings.
2016-09-11 17:59:00 +01:00
Mike McQuaid
ae43b79ca2
cmd/missing: fix Rubocop warnings.
2016-09-11 17:59:00 +01:00
Mike McQuaid
4e090530b1
cmd/log: fix Rubocop warnings.
2016-09-11 17:59:00 +01:00
Mike McQuaid
9d782454ab
cmd/list: fix Rubocop warnings.
2016-09-11 17:58:59 +01:00
Mike McQuaid
5d761f651a
cmd/install: fix Rubocop warnings.
2016-09-11 17:58:59 +01:00
Mike McQuaid
990ee4f36c
cmd/info: fix Rubocop warnings.
2016-09-11 17:58:59 +01:00
Mike McQuaid
d9b8d0f6b1
cmd/help: fix Rubocop warnings.
2016-09-11 17:58:59 +01:00
Mike McQuaid
c8084b1743
cmd/fetch: fix Rubocop warnings.
2016-09-11 17:58:59 +01:00
Mike McQuaid
c45e36ffde
cmd/doctor: fix Rubocop warnings.
2016-09-11 17:58:59 +01:00
Mike McQuaid
5e0c222029
cmd/desc: fix Rubocop warnings.
2016-09-11 17:58:59 +01:00
Mike McQuaid
128729988e
cmd/commands: fix Rubocop warnings.
2016-09-11 17:58:58 +01:00
Zhiming Wang
41efd59d2c
cmd/commands: always show developer commands
...
Per discussion in #900 .
Closes #900 .
2016-09-09 18:10:10 -04:00
Mike McQuaid
b5a6b4e8e1
Merge pull request #896 from MikeMcQuaid/no-chown-usr-local
...
Don't require/recommend ownership of /usr/local.
2016-09-09 09:29:46 +01:00
Mike McQuaid
492391f5fe
Don't require/recommend ownership of /usr/local.
...
Apple reset this on every OS X major (and some minor) updates and it
always proves a painful and unnecessary step. Instead just check the
directories we actually care about are writable.
This may mean if these directories do not already exist (although they
are now created by the installed) that `brew link` will fail and require
manual intervention but this seems to be superior for both new and the
majority of existing users.
2016-09-09 08:06:37 +01:00
Mike McQuaid
027086d673
help: rename help section for developers.
2016-09-08 20:48:38 +01:00
Mike McQuaid
ae57057afa
help: use Commands module.
2016-09-08 20:46:55 +01:00
Mike McQuaid
49dcbee99c
command: use Commands module.
2016-09-08 20:46:55 +01:00
Mike McQuaid
9514d1f8f5
commands: developer not development commands.
2016-09-08 20:46:55 +01:00
Mike McQuaid
af8605ea4b
Move developer-focused commands to dev-cmd.
2016-09-08 20:46:37 +01:00
Mike McQuaid
4f6bae46f9
cmd/*: don't restrict dev-cmd to Homebrew developers.
2016-09-08 20:46:37 +01:00
Mike McQuaid
691d57f594
update.sh: don't cleanup on update for developers.
...
We’re defining developers as people who have run a dev-cmd at least
once.
2016-09-08 20:46:36 +01:00
Mike McQuaid
f37d004ab5
Merge pull request #864 from vladshablinsky/skip-upgrade
...
Skip upgrade of pinned dependency if it's outdated
2016-09-08 20:16:29 +01:00
Mike McQuaid
3dff6f61d8
Merge pull request #890 from MikeMcQuaid/dev-cmd-help
...
dev-cmd: add `--help` to all developer commands.
2016-09-08 09:55:53 +01:00
Mike McQuaid
12813b8b62
Merge pull request #879 from penman/checkout_warning
...
Warn when changing branch on update
2016-09-08 09:06:41 +01:00
Mike McQuaid
ebdb879fe4
Add --help
to all developer commands.
...
Also, flag those that we never want to be in a manpage.
2016-09-08 09:05:00 +01:00
Vlad Shablinsky
f8ea7a4a0c
reinstall: fail if pinned
2016-09-07 20:58:13 +03:00
Mike McQuaid
d1ba4f44c0
Merge pull request #833 from DomT4/death_by_xcode
...
xcode: die unless Xcode/CLT up-to-date on prerelease macOS
2016-09-07 09:51:06 +01:00
Mike McQuaid
f1cc1265af
Refactor MacOS check_development_tools usage.
...
Better use the abstraction layer so e.g. Linux could have similarly
fatal checks for these things.
2016-09-07 09:11:06 +01:00
Mike McQuaid
1160d0e347
update-report: also link docs, completions.
...
These are more files in the HOMEBREW_REPOSITORY that we want to link to
the HOMEBREW_PREFIX.
2016-09-06 09:04:51 +01:00
Alyssa Ross
04ebd0af33
Adjust branch change message
2016-09-05 22:18:24 +01:00
Alyssa Ross
07a00c234c
Warn when changing branch on update
...
Closes #877
2016-09-05 11:20:19 +01:00
Mike McQuaid
dfcbefff73
Merge pull request #201 from gregory-nisbet/feature-env-shells
...
--env: support more shells, allow explicit shell selection
2016-09-04 21:23:33 +01:00
Mike McQuaid
2e5e9286f7
Merge pull request #870 from MikeMcQuaid/revert-keep-old
...
bottle: revert --keep-old changes.
2016-09-04 19:05:55 +01:00
Mike McQuaid
e5869b1e9a
Merge pull request #859 from MikeMcQuaid/preinstall-update-whitespace
...
update-report: add newline if preinstall updated.
2016-09-04 18:59:38 +01:00