| Age | Commit message (Collapse) | Author |
|
Relocate HOMEBREW_REPOSITORY when necessary.
|
|
This will make brew readall --syntax pass
|
|
|
|
|
|
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.
|
|
`var/homebrew` is too broad and ends up deleting and recreating the
locks directory repeatedly.
|
|
|
|
This will hang around otherwise due to e.g. running `bundle install` in
here once.
|
|
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.
|
|
update-report: also create Cellar on migration.
|
|
update-report: handle directory not existing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
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)
|
|
Need to do this manually now that we can't rely on `git clean -xdf` to
do it for us.
|
|
This shouldn't be possible to occur after #1013 but it makes sense to
add it anyway.
|
|
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).
|
|
Otherwise if they are created and empty they may be removed again
before we try to create the `/usr/local/bin/brew` symlink.
|
|
Also migrate people without `HOMEBREW_DEVELOPER` set to the new
location.
|
|
update-report: migrate /usr/local repository.
|
|
update.sh: turn origin/branch into a variable.
|
|
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
|
|
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`).
|
|
Rather than repeating origin multiple times.
|
|
Rubocop: apply auto-corrections and don't use hash-rockets
|
|
utils: convert formula name from pathname to string
|
|
formula: set TERM to dumb during test
|
|
`name` is passed as argument to Formulary.factory which could later be
downcased at formulary.rb:349, but Pathname doesn't have a downcase
method. Converting `name` to String as it should be fixes the problem.
Fixes #1000.
|
|
|
|
|
|
Improve legacy symlink migration.
|
|
Read the old symlinks and migrate them across rather than assuming a
unlink/link will work fine (as users have conflicts.)
|
|
|
|
ENV.no_weak_imports should be a no-op when Xcode doesn't support the
feature to avoid breaking builds with <= Xcode 7.
|
|
|
|
|
|
But remove some manual `.freeze`s on constants that shouldn't be
constants.
|
|
Move the `LinkedKegs` migration into `utils.rb` so it can also be called
from `brew.rb` on startup.
|
|
os/mac: officially support Sierra.
|
|
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.
|
|
We have a GM, a bunch of bottles and CI setup.
|
|
We may have two Sierra nodes available which could speed up this
relatively slow operation.
|