| Age | Commit message (Collapse) | Author |
|
I believe this works nowadays. When I created Homebrew originally, it did nothing. Hence all the other logic.
|
|
Remove cairo dep from gtk formula as a consequence.
|
|
It was just confusing, and since the `brew upgrade` refactor this makes more sense too.
Shame it still downloads in there etc. but whatever. Homebrew 2 will fix!
|
|
Will be useful for a variety of reasons, but for now, I'm just using it to ensure install won't install again if something is already installed (use brew upgrade instead).
But means that brew switch and that can work properly etc.
|
|
|
|
Bottles now pour purely, without doing all the other unnecessary stuff that happened before the `brew upgrade` code shuffle.
Formula.pourable? removed since it was install-specific metadata and not related to the formula itself. Now all such logic is in the FormulaInstaller which is much cleaner.
I also changed the bottle cache location to the normal directory and added a .bottle pre-extension. Thus you can see everything in one directory without messing about.
|
|
Consequence: you can no longer install when something is already installed, you must upgrade it. This doesn't apply if the formula in question was unlinked. You can still --force installs though.
Rationale: the old way of installing over the top would leave symlinks to multiple versions in /usr/local if the old version had a file the newer version didn't. The new upgrade command handles everything properly.
|
|
|
|
|
|
HOMEBREW_PREFIX for example.
|
|
|
|
|
|
|
|
It just means nobody knows what is being done without scrolling up and down, up and down the file like a doofus on a pogo stick.
|
|
|
|
Finder activity such as moving the position of an icon can create an unexpected
.DS_Store file in a Cellar directory. This causes `brew remove --force` to throw
an error that is reported as
Error: Directory not empty - /usr/local/Cellar/<formula>
This fix avoids that error, by calling rmtree rather than rmdir.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
|
|
For now we don't support this kind of thing because our formula is a worse option, even though you have to update it yourself.
Closes Homebrew/homebrew#6174
|
|
Selection of generic installation options, such as `--HEAD`, is now lumped
together with selection of formulae-specific options.
This allows any installation option to be tab-completed *before or after* the
formula name is specified.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
Note this only happens if Homebrew is *not* installed sudo. Which is most of the time true.
Fixes Homebrew/homebrew#6899
|
|
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
|
|
We don't know what revision the tarball was when homebrew was installed, so all we can do really is hard reset. In theory some set of git commands should suffice, but apparently --soft and --mixed resets ended up putting stuff in the index which would break subsequent `brew updates`.
Fixes Homebrew/homebrew#6851
|
|
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
|
|
|
|
|
|
Users were seeing local changes in their repository after updating, even
though they had made no local changes.
The repository setup sequence should use `git reset --soft` rather than
vanilla `git reset`, which defaults to '--mixed'. '--soft' updates
_only_ HEAD, leaving the index as-is, allowing future incantations of
`brew update` to proceed without errors.
Fixes Homebrew/homebrew#6732.
|
|
|
|
The output happens as it is determined, rather than all at once, which is preferable for CLI commands. This meant I had to hard-code the left-justification.
The pre-amble warning is removed. Instead the command outputs the git checkout command for each she that you can type to get that old formula.
I decided that reseting the one file will work 99% of the time and that it is too risky to reset the whole repo, this will roll-back bug fixes. Instead we should add functionality to compat/ in order to support old formula as required. Sometimes deps may have to be rolled-back too, but the user will have to figure this out on an ad-hoc basis. We are assuming a failure sophisticated user anyway, one who would like to get old versions of stuff.
I moved most of the functions into Formula since IMO this makes more conceptual sense.
I made the she get abbreviated by git (using --abbrev-commit) itself so it as short as can be.
|
|
Allow compatibility to be disabled with --no-compat or HOMEBREW_NO_COMPAT environment variable.
|
|
|
|
|
|
|
|
|
|
|
|
Dumb mistake. Sorry.
Closes Homebrew/homebrew#6722
|
|
|
|
|
|
Since this is our new policy for /usr/local.
|
|
Longer-term we'll try and use install_name_tool to fix Lion
bottles so they run fine on 10.5 and/or 10.6.
Closes Homebrew/homebrew#6699.
|
|
Qt and PhantomJS install apps to this folder, so find those apps too.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
|
|
|
|
Provided the user installed with our installer anyway. It creates all the directories that Homebrew will need during its life thus negating the need for root writability.
|
|
Because the new installer creates the .git directory when it installs.
|
|
Because the new installer will always create /usr/local/sbin. Because we must keep /usr/local root:wheel unless we want to be considered bad citizens.
|
|
Don't install when bottling. Homebrew should bottle whatever is installed. If nothing is installed, error out.
|
|
|
|
|