10578 Commits

Author SHA1 Message Date
Mike McQuaid
7a9934ffa3 test-bot: brew prune after removing formulae. 2016-09-19 11:24:36 +01:00
Mike McQuaid
357cce11fe Merge pull request #1008 from MikeMcQuaid/more-rubocop
More Rubocop tweaks
2016-09-19 11:20:06 +01:00
Mike McQuaid
8a4f26f952 test-bot: run brew style. 2016-09-19 11:18:10 +01:00
Mike McQuaid
263a8a0b73 style: no args default to Library/Homebrew. 2016-09-19 11:18:10 +01:00
Mike McQuaid
3686243e5a style: don't require HOMEBREW_DEVELOPER to fix. 2016-09-19 11:18:09 +01:00
Mike McQuaid
e79f62b2ea style: allow passing taps as arguments. 2016-09-19 11:18:09 +01:00
Mike McQuaid
515f7b5255 Unify .rubocopy.yml files. 2016-09-19 11:18:09 +01:00
Mike McQuaid
569dbf4d05 utils: skip migration of broken formulae symlinks.
Closes https://github.com/Homebrew/homebrew-core/issues/4973
2016-09-19 10:40:18 +01:00
Mike McQuaid
a2f19f0a67 update-report: tweak migration messaging
References #1023.
2016-09-19 09:52:13 +01:00
Mike McQuaid
a09799f25a os/mac: fall back to old environment.
Can't see how this could ever happen but let's safe-guard it just in
case (as ilovezfs saw it).
2016-09-19 09:17:35 +01:00
Mike McQuaid
6e1312d4a1 Merge pull request #1011 from MikeMcQuaid/migrate-legacy-repository-everyone
update-report: migrate everyone to new repository.
2016-09-19 09:05:14 +01:00
Mike McQuaid
167af26a24 Merge pull request #1019 from MikeMcQuaid/macos-rename
Use new "macOS" naming where appropriate.
2016-09-19 08:17:36 +01:00
Mike McQuaid
7e7a714505 Merge pull request #1021 from MikeMcQuaid/update-migration-remove-cask
update-report: remove cask dir after migration.
2016-09-19 08:16:26 +01:00
Mike McQuaid
954de55323 Merge pull request #1022 from MikeMcQuaid/keg-prune-linked
keg: only prune var/homebrew/linked.
2016-09-19 08:16:13 +01:00
Mike McQuaid
e4fb2ce3bd Merge pull request #1015 from MikeMcQuaid/relocate-repository
Relocate HOMEBREW_REPOSITORY when necessary.
2016-09-19 08:14:44 +01:00
Alyssa Ross
d89a696d83 Remove unused variable
This will make brew readall --syntax pass
2016-09-19 02:24:21 +01:00
Alyssa Ross
6ec14288aa Formulae aren't outdated if replacement formula installed 2016-09-19 02:08:42 +01:00
Alyssa Ross
4abd48812b alias tracking: add formula tests 2016-09-19 02:08:39 +01:00
Alyssa Ross
e12c23faa8 Formula#old_installed_formula?: fix some bugs
Previously, this method would:

- Include the current formula
- Include the current target of the installed alias, which by definition
  is not "old"

This commit fixes both of these issues.
Only formulae that are the current target of the alias they were installed
with are now considered to have old installed formulae.
2016-09-18 23:59:55 +01:00
Mike McQuaid
ac31a6518e keg: only prune var/homebrew/linked.
`var/homebrew` is too broad and ends up deleting and recreating the
locks directory repeatedly.
2016-09-18 21:52:42 +01:00
Alyssa Ross
912b8d4776 formula tests: more consistent names 2016-09-18 21:43:54 +01:00
Mike McQuaid
d0204207ed update-report: remove cask dir after migration.
This will hang around otherwise due to e.g. running `bundle install` in
here once.
2016-09-18 21:42:44 +01:00
Mike McQuaid
8e9a9b6428 Merge pull request #1020 from MikeMcQuaid/migration-cleanup-git
update-report: cleanup git harder in migration.
2016-09-18 20:43:44 +01:00
Mike McQuaid
42e9782dd6 update-report: cleanup git harder in migration.
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-18 20:25:18 +01:00
Mike McQuaid
027d8923f2 Merge pull request #1018 from MikeMcQuaid/update-migration-create-cellar
update-report: also create Cellar on migration.
2016-09-18 20:18:53 +01:00
Mike McQuaid
132ed2bcd5 Merge pull request #1016 from MikeMcQuaid/migrate-handle-more-symlink-fails
update-report: handle directory not existing.
2016-09-18 20:18:42 +01:00
Mike McQuaid
ef4159f188 Merge pull request #1017 from MikeMcQuaid/test-bot-uninstall
test-bot: uninstall all formula on cleanup.
2016-09-18 20:17:35 +01:00
Mike McQuaid
b383d95352 os/mac: mark Mavericks as outdated. 2016-09-18 19:59:08 +01:00
Alyssa Ross
49bfb3fb4a Make Formula#installed_alias_target_changed? clearer 2016-09-18 19:58:12 +01:00
Mike McQuaid
8bae49941c outdated: prefer .join over *. 2016-09-18 19:58:12 +01:00
Alyssa Ross
7b85934f50 Update formula tests for #outdated_kegs 2016-09-18 19:58:12 +01:00
Alyssa Ross
d3788c58ef brew outdated: use full name in verbose 2016-09-18 19:58:12 +01:00
Alyssa Ross
c874b4e4c2 install: don't install alias if already installed 2016-09-18 19:58:11 +01:00
Alyssa Ross
2a683f2569 upgrade, outdated: follow alias changes 2016-09-18 19:58:09 +01:00
Mike McQuaid
3f9cce0a03 Use new "macOS" naming where appropriate.
Not quite a mass replacement as I've used OS X and Mac OS X where
describing specific older versions and added compatibility methods
for things in the DSL.
2016-09-18 19:57:19 +01:00
Alyssa Ross
3d559fa796 Add Formula#installed_alias_path 2016-09-18 19:45:52 +01:00
Mike McQuaid
fc04d8f4f6 update-report: also create Cellar on migration.
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-18 19:32:29 +01:00
Mike McQuaid
3551977fb3 test-bot: uninstall all formula on cleanup.
Need to do this manually now that we can't rely on `git clean -xdf` to
do it for us.
2016-09-18 19:30:00 +01:00
Mike McQuaid
ee0fb3e999 update-report: handle directory not existing.
This shouldn't be possible to occur after #1013 but it makes sense to
add it anyway.
2016-09-18 16:55:59 +01:00
Mike McQuaid
997ccb044d Relocate HOMEBREW_REPOSITORY when necessary.
Now that the default from the installer, our CI and soon all users
is `/usr/local/Homebrew` it's a lot easier to check if there's
references to it (as we cannot look for `/usr/local` as it's a too
commonly hardcoded path).
2016-09-18 16:31:58 +01:00
Mike McQuaid
f4a8d28819 Merge pull request #1013 from MikeMcQuaid/migrate-create-top-level-after
update-report: create top-level directories later.
2016-09-18 16:10:31 +01:00
Mike McQuaid
89ebffadec update-report: create top-level directories later.
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-18 16:06:49 +01:00
Mike McQuaid
72d0154454 update-report: migrate everyone to new repository.
Also migrate people without `HOMEBREW_DEVELOPER` set to the new
location.
2016-09-18 15:44:06 +01:00
Mike McQuaid
e20467971e Merge pull request #963 from MikeMcQuaid/migrate-repository
update-report: migrate /usr/local repository.
2016-09-18 15:41:04 +01:00
Mike McQuaid
ad466452de Merge pull request #1007 from MikeMcQuaid/update-remote-ref
update.sh: turn origin/branch into a variable.
2016-09-18 15:32:44 +01:00
Bob W. Hogg
467b5765cf os: update Linux troubleshooting url
The existing one has two issues:
* It doesn't reflect Linuxbrew's move to a separate GitHub org
* It redirects to the legacy-linuxbrew (pre-core/brew split) wiki
2016-09-18 10:28:23 -04:00
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
59b7f16bfd Merge pull request #989 from MikeMcQuaid/rubocop-final
Rubocop: apply auto-corrections and don't use hash-rockets
2016-09-18 13:28:15 +01:00
ilovezfs
56541001a4 Merge pull request #1003 from zmwangx/utils-pathname-to-string
utils: convert formula name from pathname to string
2016-09-17 23:08:49 -07:00