aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2012-02-02doctor: remove gcc-4.2 warning on Xcode 4.2+Misty De Meo
Re: Homebrew/homebrew#9925, many others.
2012-02-01prune: remove info dir entries for pruned filesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-01link: add missing newline in verbose modeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-31create: punt on bad URLsJack Nagel
When we can't detect a name from the URL, just ask the user. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-29versions: ignore NameError and ArgumentErrorJack Nagel
Fixes Homebrew/homebrew#9856. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-28audit: make boost-jam a build-time dependencyAdam Vandenberg
2012-01-27versions: fix up error handlingJack Nagel
Now we handle some things more explicitly and in the process get rid of the blanket rescue on the mktemp block, which is something of an antipattern. By unloading the class *after* determining the version, we avoid the case where the class had previously been unloaded but Formula.factory failed, and trying to unload the nonexistent class results in a NameError. Doing it this way, we avoid having to rescue NameError and thereby avoid hiding other cases where it may occur. We also rescue TypeError which gets us past a few more bad formula in the history in some instances. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-26versions: silence 'aka' warning and syntax errorsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-25audit: reorganize some checksJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-25audit: make devel check more specificJack Nagel
There are a few false positives where the string 'devel' occurs in other contexts. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-25Add `devel` to the DSL, + stable and bottle blocksMisty De Meo
This commit adds a `devel` entry to the DSL, allowing formulae to specify an unstable branch. `devel` takes a block, which should contain standard `url` and `md5` fields (and `version`, if necessary). This must come after the standard DSL fields. This commit also migrates over all formulae currently using `devel` to the new syntax, as well as formulae which used `head` for non-VCS urls. The new syntax is also available for `stable` and `bottle`. `stable` is an option alongside the old syntax. `bottle` replaces the old syntax. Note that the @stable ivar in Formula has been renamed to @standard, and the @bottle ivar has been renamed to @bottle_url. Closes Homebrew/homebrew#9735. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-01-24doctor: reset should be done in HOMEBREW_REPOSITORYJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-24Make brew doctor reset instructions clearer.Mike McQuaid
Fixes Homebrew/homebrew#9739.
2012-01-24versions: don't print 'nil' when stdout is not a ttyDylan Smith
Closes Homebrew/homebrew#8960. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-17audit: check for mercurial dependencyJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-13search: return results while parsingMisty De Meo
Instead of returning a full list of results after parsing, yield and print each result as it's found for a snappier user experience. Closes Homebrew/homebrew#9576. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-01-14Use the basename of which_editorMax Howell
I had EDITOR set to /usr/local/bin/mate set and got the whole of /usr/local opened in TextMate which takes fricking forever!
2012-01-12search: don't try to escape nilJack Nagel
Fixes Homebrew/homebrew#9575. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-12versions: use the actual class name when unloadingJack Nagel
And document a bit more why this hack is present. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-11search: return matches from open pull requestsJack Nagel
When search can't find any local results, hit the GitHub API and search the titles of pending pull requests. This will help people find the many proposed formulae and prevent them from wasting time duplicating them. Closes Homebrew/homebrew#9018. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-11Make MacOS.clang_build_version more usefulJack Nagel
Let's choose the first \d{2,} as the build number, as it is the most likely to indicate significant changes, and we need something to use for comparison when selecting compilers. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-06versions: unload old class before obtaining versionJack Nagel
This is silly, but I am no Rubyist and I don't have time to figure out why Formula.factory(foo).url works as expected but Formula.factory(foo).version does not. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-06versions: enable '--compact' outputJack Nagel
This will be useful for shell tab completion when something like `brew install <formula> --version <version>` is implemented. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-06versions: determine version from a Formula instanceJack Nagel
Rather than regex the output of `git show <rev>:<path>`, we write the output of `git cat-file blog <rev>:<path>` to a temporary file, and then operate on it just as we would a normal formula. I haven't observed any speed difference. `git cat-file blob` is faster than `git show`, but the "slow part" is still the git-rev-list invocation. But really it's pretty fast overall. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-03info: always mark currently linked keg with *Jack Nagel
When multiple kegs are installed, `brew info` marks a keg with an asterisk if f.installed_prefix == keg, but this is only true if either HEAD or the newest version of the formula is installed. This isn't always useful, so let's mark the currently linked keg with an asterisk regardless of the version. Obviously, keg-only formula will never be marked, but this is probably a feature. When multiple keg-only kegs exist, chances are that they are each being utilized by something, so there isn't really a "used" and "unused" version. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-03info: display used options for all installed kegsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-02audit: do not complain about --32-bitAdam Vandenberg
2011-12-31brew --env: respect --universalJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-31audit: check for trailing newlineJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-28doctor: clean up check_git_statusJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-28config: prettify sha methodJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-21audit: remove --strictAdam Vandenberg
2011-12-21Clean up --configAdam Vandenberg
2011-12-20Omit empty caveatsAdam Vandenberg
2011-12-18--HEAD checksAdam Vandenberg
* Force --HEAD for head-only installs * Don't allow --HEAD for stable-only formulae
2011-12-18Audit: warn about head-only formulaeAdam Vandenberg
2011-12-18doctor: check for Enthought PythonAdam Vandenberg
2011-12-16doctor: normalize representation of env variablesJack Nagel
Current warnings contain a mix of variable names with a '$' prefix and without; most documentation omits the '$', so drop it. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-16doctor: fix a couple of git-related checksJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-16--env: dump a few more environment variablesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-16Enable 'brew edit' for non-Textmate editors.Adam Vandenberg
2011-12-15audit: hard wrap dep warningJack Nagel
The warning is lengthy, and usually wraps on 80-column terminals. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-08IdiomsAdam Vandenberg
2011-12-08audit: check for hard-coded compilersJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-02Restore --force behaviour in brew-installMisty De Meo
Fixes Homebrew/homebrew#8933. Closes Homebrew/homebrew#8936. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-11-30audit: only perform GNU URL check on primary URLsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-30audit: disable GNU url checkJack Nagel
It needs to be reworked to only check the primary URLs, as we are now using ftp.gnu.org as a mirror. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-29audit: smake is also a build toolAdam Vandenberg
2011-11-29audit: check for DB deps tooAdam Vandenberg
2011-11-29audit: warn about more "forbidden" dependenciesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>