aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2012-04-06info: output correct URL for tapped dupesJack Nagel
Tapped formulae that dupe those in core now display the correct URL when invoked like `brew info homebrew/dupes/openssl`. This also fixes the broken `brew info` test. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-05Use GitHub API 3 in `brew search`Max Howell
2012-04-03doctor: fix typosRory O’Kane
Closes #11418. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-02fetch: don't display cached location twiceJack Nagel
The download strategy will print the cached location if we've already fetched it, so avoid printing redundant information. Also just "puts" it instead of using a second `ohai` line. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-03Version bottles.Mike McQuaid
2012-03-29info: always indicate if a keg is linkedJack Nagel
We mark the linked keg with an asterisk when multiple kegs exist, but not when there is only a single keg. Start marking even in this case, giving consistent behavior and a reliable indicate of the link status. Fixes #11300. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-29Exit with bad exit code on command failures.Mike McQuaid
2012-03-29brew-bottle doesn't need to specify filenames now.Mike McQuaid
2012-03-25Search Homebrew/gamesMax Howell
2012-03-24Fix typo in --config.rbJack Nagel
Closes #11183. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-23Parse raw diff output in `brew update`Jack Nagel
Using each_cons() "works", but to report all changes correctly we need to look at the last elements even after we've looked at the last 3 consecutive elements. Instead, let's parse each line of the raw diff output using a regexp. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-23Pass the tab to FormulaInstallerJack Nagel
Callers of FormulaInstaller now usually unlink the existing keg prior to running the installer. However, Tab.for_formula uses the LinkedKeg record to obtain the tab. Since we need the tab to persist install options across upgrades, we must start creating the Tab object before unlinking the old keg and passing it to the FormulaInstaller. Fixes #11086. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-22Detect and display renames in `brew update`Jack Nagel
Renamed formulae will cease to display as an add/delete pair and instead end up the in the "Renamed" section. In the future we should be able to take this information and use it to rename existing kegs during updates, allowing us to rename formulae without breaking upgrades. Renaming a formula requires renaming the class, so there will be at least one add/delete pair in the file. Thus, the similarity threshold for detecting renames is set at 85% to allow a little bit of content turnover without losing track of the rename. Closes #11158. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-22Use --verify when querying HEADJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-23Check tapped before trying to untapMax Howell
If the tap-formula wasn't symlinked for some reason, don't throw an exception—the job is already done.
2012-03-21brew doctor: check for trailing slashes in pathAdam Vandenberg
Having path directories with trailing slashes can cause other false warnings. Closes #9986.
2012-03-21Update missing Xcode adviceJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-21brew fetch: show downloaded pathAdam Vandenberg
2012-03-20Update Xcode version checksJack Nagel
Closes #11044. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-20Remove broken `puts` from verbose `brew link`Jack Nagel
The print wrapper which has its own `puts` broke this line; though with the changes to `link` it isn't necessary any longer, so just remove it. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-20Don't query online for plain `brew search`Max Howell
2012-03-19audit: add tests for patchesAdam Vandenberg
2012-03-19If no formula but multiple kegs, advise resolutionMax Howell
In this case the user will simply have to delete all but one keg in order to use the command that uses ARGV.kegs. Refs #11050.
2012-03-19Don't error if exact link already existsMax Howell
If the link already exists exactly (well almost exactly) as we are about to correct it, then it's okay. Otherwise we error out. This is a safe choice, and really, the correct choice too. This will prevent the tickets like #11050 from occurring.
2012-03-19Better error when linking failsMax Howell
Refs http://stackoverflow.com/questions/9762943 The system ln no longer outputs anything. Though the user can force its output with a --verbose of course. So in cases where it's not the usual of: not writable or existing file, we can ask the user to run with --verbose. I don't particularly like hiding its output, but it just confused the error IMO since it is creating a relative symlink the output was weird every time I've seen it in tickets. I made a print wrapper so that the brew-link output doesn't get mucked up if an exception is thrown.
2012-03-18Remove reliance of bottle DSL on EOCLASS.Mike McQuaid
2012-03-18Set MACOS_VERSION as 0 on non-OSX platforms.Mike McQuaid
2012-03-18Use fetch for downloading bottles.Mike McQuaid
Fixes #10958.
2012-03-18Downcase when checking if no tap search neededMax Howell
2012-03-18Special case "Homebrew" in brew-searchMax Howell
Again, "Homebrew" is changed to "homebrew" before rendering to the user.
2012-03-18Special case Homebrew organization tapsMax Howell
We allow homebrew/dupes for instance, rather than Homebrew/dupes. Because nobody likes shifting in the terminal. In the process of doing this I discovered some case-insensitive filesystem bugs we have avoided before because I had the foresight to mandate lowercase in formula names. GitHub considers Homebrew and homebrew to be different (even though you can't create both). So we had to allow case insensitivity in tap input. I have made it now so the resulting directory however is lowercased, neatly avoiding the issue. And so we also downcase tap arguments when applying them to tap directories or formula.
2012-03-18Add brew/versions and brew/dupes to searchMax Howell
2012-03-18Handle when formula are deleted from tapsMax Howell
The symlinks in Formula must be updated.
2012-03-18Generalise the untap step so we can add to updateMax Howell
brew-update needs to be able to unsymlink removed stuff from taps too.
2012-03-18Make the tapping already there step actually workMax Howell
For when the symlink for a tap already exists and points to the thing we are about to symlink. This can happen, mostly because my code has sucked, but since the filesystem can be edited by the user at whim, it's possible then too.
2012-03-18Don't warn about .DS_StoreMax Howell
Fixes #11018.
2012-03-17doctor: check OS versionAdam Vandenberg
We warn if you are not running the latest Leopard or Snow Leopard. (We do not currently check Lion or Mountain Lion versions.)
2012-03-17bsdmake is a build-time depJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-17audit: check for install options being shadowedAdam Vandenberg
2012-03-16Add `brew uses --recursive`Adam Vandenberg
Closes #8870.
2012-03-17Report correct conflicting tapMax Howell
Fixes: $ brew tap adamv/alt ...blah blah blah.. $ brew tap josegonzalez/php ...blah blah blah... Warning: Could not tap josegonzalez/php/php over mxcl/master/php Where it should be "over adamv/alt/php".
2012-03-17Plain `brew tap` doesn't error if no Library/TapsMax Howell
Fixes #10994.
2012-03-16`brew search` will search taps we decide are coreMax Howell
This means `brew search` always does some network operations. Which is a shame, but I think (for brew) fine. Probably the no-connectivity handling needs to be improved.
2012-03-16Output tapped formula account properlyMax Howell
2012-03-16Don't break if symlink already exists during tapMax Howell
This shouldn't happen but is possible and we should handle it. Also added some puts when tapping/untapping.
2012-03-16HOMEBREW_LIBRARYMax Howell
I got fed up writing HOMEBREW_REPOSITORY/"Library" and also correcting mistakes when I did HOMEBREW_PREFIX instead.
2012-03-16Pathname.atomic_writeMax Howell
2012-03-16Better conflict warnings when tappingMax Howell
2012-03-16Doctor check for unlinked not-keg-only brewsMax Howell
Since these cause trouble.
2012-03-16Link new tapped formula during brew updateMax Howell
Required me to spoil tap's code. All in the name of DRY! Alas!