Commit Graph
377 Commits
Author SHA1 Message Date
Max Howell 45710770a3 Don't error if exact link already exists
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-19 12:24:13 +00:00
Max Howell ce082c167c Better error when linking fails
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-19 00:28:38 +00:00
Mike McQuaid 1b71544892 Remove reliance of bottle DSL on EOCLASS. 2012-03-18 20:38:18 +13:00
Mike McQuaid 9c16145d8c Set MACOS_VERSION as 0 on non-OSX platforms. 2012-03-18 15:43:39 +13:00
Mike McQuaid d2ad0d0232 Use fetch for downloading bottles.
Fixes #10958.
2012-03-18 15:16:57 +13:00
Max Howell ab571e4d72 Downcase when checking if no tap search needed 2012-03-18 02:03:19 +00:00
Max Howell e820345902 Special case "Homebrew" in brew-search
Again, "Homebrew" is changed to "homebrew" before rendering to the user.
2012-03-18 01:51:36 +00:00
Max Howell 41b0e8583d Special case Homebrew organization taps
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-18 01:45:26 +00:00
Max Howell 087408b8e0 Add brew/versions and brew/dupes to search 2012-03-18 01:23:15 +00:00
Max Howell b481aec543 Handle when formula are deleted from taps
The symlinks in Formula must be updated.
2012-03-18 01:23:01 +00:00
Max Howell 21b04d5171 Generalise the untap step so we can add to update
brew-update needs to be able to unsymlink removed stuff from taps too.
2012-03-18 01:14:00 +00:00
Max Howell a190d47cd8 Make the tapping already there step actually work
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-18 01:14:00 +00:00
Max Howell 9658a780f6 Don't warn about .DS_Store
Fixes #11018.
2012-03-18 00:16:09 +00:00
Adam Vandenberg aa46c7638f doctor: check OS version
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-17 11:56:32 -07:00
Jack Nagel 7e3287e683 bsdmake is a build-time dep
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-17 11:16:45 -05:00
Adam Vandenberg 07d42d0ce3 audit: check for install options being shadowed 2012-03-17 08:46:04 -07:00
Adam Vandenberg a75d9d51d0 Add brew uses --recursive
Closes #8870.
2012-03-16 22:00:59 -07:00
Max Howell 04243da198 Report correct conflicting tap
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-17 01:24:03 +00:00
Max Howell f15c647393 Plain brew tap doesn't error if no Library/Taps
Fixes #10994.
2012-03-17 00:04:43 +00:00
Max Howell 5641e6b38e brew search will search taps we decide are core
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-16 22:37:11 +00:00
Max Howell d66e23ac4b Output tapped formula account properly 2012-03-16 22:08:55 +00:00
Max Howell 585df7a6ba Don't break if symlink already exists during tap
This shouldn't happen but is possible and we should handle it.

Also added some puts when tapping/untapping.
2012-03-16 21:06:18 +00:00
Max Howell 4ea9c055af HOMEBREW_LIBRARY
I got fed up writing HOMEBREW_REPOSITORY/"Library" and also correcting mistakes when I did HOMEBREW_PREFIX instead.
2012-03-16 21:06:18 +00:00
Max Howell fa215d34e9 Pathname.atomic_write 2012-03-16 21:06:17 +00:00
Max Howell 0ec3aefcfe Better conflict warnings when tapping 2012-03-16 21:06:17 +00:00
Max Howell 0364fef0a3 Doctor check for unlinked not-keg-only brews
Since these cause trouble.
2012-03-16 21:06:17 +00:00
Max Howell b584043e63 Link new tapped formula during brew update
Required me to spoil tap's code. All in the name of DRY! Alas!
2012-03-16 21:06:17 +00:00
Max Howell 126cc9fa15 Concise --config output for build errors
Rationale, lets only pay attention to the output when it matters. Speeding up diagnosis.
2012-03-16 21:06:16 +00:00
Max Howell f8e70f93c3 brew info understands taps
Note I removed some of the code that changed the URL to be that of the github.user. Because this doesn't make any sense really. We want people to reference the commit history for whatever fork of homebrew they have checked out. So this is now what it does.
2012-03-16 21:06:16 +00:00
Max Howell 635ce6f5e7 Leave kegs keg-only if linking step fails
Rationale: well, it should always have been like this!

However now we are opening ourselves up to more-mixed installations of formula not maintained by us, it's important that
2012-03-16 21:06:16 +00:00
Max Howell 2e86a41e61 brew update will update taps 2012-03-16 21:06:16 +00:00
Max Howell f10696e8ab brew edit adamv/alt/ruby works
The reason it didn't work is it doesn't use ARGV.formulae because it needs to be able to edit stuff that doesn't parse. Most other stuff already works because we are awesome.
2012-03-16 21:06:15 +00:00
Max Howell 4247c60015 canonical_name can resolve taps 2012-03-16 21:06:15 +00:00
Max Howell a05a5fc8fb Prevent tapped symlinks showing up in git status
The symlinks taps write to Formula show up in git status, but this trick prevents this. brew-(un)tap maintain a .gitignore in Formula that contains all the symlinks brew-tap creates.

We add the .gitignore to the root .gitignore and TADA! Magic.
2012-03-16 21:06:15 +00:00
Max Howell fb13b6a99e brew tap and brew untap 2012-03-16 21:06:15 +00:00
Max Howell 08eb163296 Improve CLI tools suggestion doctor text 2012-03-16 01:03:24 +00:00
Max Howell 5329bbc7bb Tell user to `brew update' if no .git 2012-03-16 00:35:49 +00:00
Max Howell 9bba1590c5 Warn about broken symlinks in HOMEBREW_PREFIX
Refs #10874.
2012-03-16 00:20:49 +00:00
Michael Nygard 6a76f9b6b3 Remove invalid character for UTF-8
Closes #10962.

Signed-off-by: Max Howell <max@methylblue.com>
2012-03-15 16:05:04 +00:00
Max Howell 5ab764a214 Explicitly tell people not to xcode-select /
Fed up dealing with this bug in xcode-select.
2012-03-15 13:19:43 +00:00
Adam Vandenberg 8396b37fe9 brew test now gets a compilation environment 2012-03-13 20:44:40 -05:00
Camillo Lugaresi ad70207070 Remove libiconv duplicate
Commit ee2c3ab ("Remove spurious libiconv dependencies") pruned all
existing "depends_on 'libiconv'" usages from Homebrew in preparation for
removing the libiconv dupe itself.

Now that is done, and we can remove and blacklist it. It can be obtained
from Homebrew-alt.

Closes #10464.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-13 19:38:17 -05:00
Adam Vandenberg 6923114b49 brew doctor: check for DYLD_INSERT_LIBRARIES 2012-03-12 21:14:33 -07:00
Adam Vandenberg 233568f6d5 Add specialty formulase to inheritance check 2012-03-10 10:26:06 -08:00
Adam Vandenberg 7a9dc599bb Use HOMEBREW_REPOSITORY for freshness check
Homebrew itself is found under HOMEBREW_REPOSITORY,
which *may* be the same HOMEBREW_PREFIX, but does not have
to be if you link brew into /usr/local/bin from another location.
2012-03-10 10:08:16 -08:00
Mike McQuaid 28b8cc7ee6 Move most bottle stuff to a bottles.rb file. 2012-03-10 18:10:40 +13:00
Mike McQuaid 24476086ae Support bottles for non-Lion OSX versions. 2012-03-10 18:09:35 +13:00
Mike McQuaid 5534b0f9e7 Make brew-bottle an internal command. 2012-03-10 17:57:10 +13:00
Jack Nagel b879c65484 Remove unnecessary hyphen
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-09 13:29:56 -06:00
Mike McQuaid 9728610ca0 Remove bad exit status; need to fix another way. 2012-03-10 08:18:42 +13:00