aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2012-08-07Simplify printing conflicts in `brew info`Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-07fix info commandAdam Vandenberg
2012-08-07`brew tap` by itself handles dashes in usernamesMax Howell
This stuff sucks. I'd like to just replace the dash with a directory division or tilde character. But this makes the code even more complicated, unless we can figure out how to migrate the taps.
2012-08-07Print an appropriate message if the tapped repository appears to be privateStafford Brunk
Closes #12247. Closes #12244. Signed-off-by: Max Howell <mxcl@me.com>
2012-08-06Fix issues with writable? detection in brew doctorBrandon Black
Closes #13689. Signed-off-by: Max Howell <mxcl@me.com> There are subtle distinctions between writable? and writable_real? we don't understand precisely why we need this, but it fixes the bugs :/
2012-08-06Restore check for broken xcode-select pathMax Howell
How did this get removed? Had a bug today where user had this but no doctor check so I was confused!
2012-08-06brew --env: Added missing env varssamueljohn
Closes #13431. Signed-off-by: Max Howell <mxcl@me.com>
2012-08-06Don't error out if never `brew updated`Max Howell
Fixes #12944.
2012-08-06Suggest git clean -f for untracked changesPatrick Lucas
Currently, if brew doctor detects untracked changes in the local repo, it suggests doing 'git reset --hard', but that doesn't remove untracked files. This change adds an additional suggestion to run 'git clean -f' to remove them. Closes #12814. Signed-off-by: Max Howell <mxcl@me.com> Changed the path to Library as we don't want to clean -f all over the whole /usr/local :P
2012-08-06New command `brew irb`Max Howell
Works rather damn well. I considered `brew -i`, but we aren't a shell.
2012-08-06Don't blacklist tapped-dupesMax Howell
If a formula is in Formula due to tapping or otherwise, don't prohibit installation. Really we should make the blacklist *really* stuff that should be blacklisted and then if it is available still require a --force. But currently with okay stuff like vim in there, and libxml2 being both blacklisted *and* in mxcl/master, we are screwing ourselves. TL;DR we should do some work on this component. Fixes #13234.
2012-08-06Put the CLT advice warning in the right placeMax Howell
Refs #13982.
2012-08-06Point out to that you may want to install the CLTMax Howell
You have to hold people's hands, they won't google anything. Refs #13982.
2012-08-06Remove X11 doctor checkJack Nagel
Now that X11 components are specified as dependencies, users will be prompted to install these components when necessary, and this check is no longer needed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-06Adjust XQuartz/X11 module naming schemeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-05Some users require hands to be held constantlyMax Howell
Tell user exactly what command to use rather than thinking they'll figure it out by applying some negation logic to the main verb in the sentence they just read. Closes #12790.
2012-08-05`brew log` works with Tapped formulaMax Howell
Fixes #12446.
2012-08-04Show options for foo with `brew info foo`Max Howell
About time right?
2012-08-04`brew tap --repair`Max Howell
Removes dead symlinks in Formula and re-symlinks all Taps. Closes #11565.
2012-08-04Tap users can have dashes, adjust regexMax Howell
Repos can't at this point. Hard to easily fix so avoiding it until 2.0 or until someone moans enough.
2012-08-02REPOSITORY not PREFIX when checking for the .gitMax Howell
2012-08-01Error handling for individual tapsMax Howell
Possibly would help diagnose: #13853.
2012-08-01Warn user not to edit before first updateMax Howell
Because, if you do, your changes will be lost.
2012-08-01Move X11 machinery into MacOS::XQuartz namespaceJack Nagel
In order to better support Xcode-only systems, where X11 libs and executables live under /usr/X11 but headers live in the SDK, move the x11_* helper methods into a new module. This allows us to keep some of the CLT/Xcode-only and Apple X11/XQuartz logic hidden from outside code, like ENV.x11. Since Apple's X11 is actually XQuartz, name the module "MacOS::XQuartz".
2012-07-30Deprecate adamv/alt from brew searchMax Howell
Add brew/science.
2012-07-30Add conflicts_with DSL methodMisty De Meo
conflicts_with is a thin wrapper around Requirement which simplifies marking conflicts between formulae. Closes #13687. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-28brew-audit: Warn against depending on MPICharlie Sharpsteen
Depending on `open-mpi` or `mpich2` will cause problems since both formulae install components with the same names. `brew audit` now recommends using MPIDependency. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-07-25Fix brew doctor warnings and spurious newline.Mike McQuaid
Fixes the problems discussed in 34c970 to ensure that `brew doctor` does not look like it is broken on user setup problems but still returns a sensible exit code for e.g. BrewBot.
2012-07-25Rename xctools_fucked?Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25Use new Xcode moduleJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25Split Xcode and CLT methods into separate modulesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-24doctor: be consistent in path adviceAdam Vandenberg
2012-07-23doctor: check for DYLD_FALLBACK_LIBRARY_PATHAdam Vandenberg
2012-07-22doctor: Skip outdated check when offlineMisty De Meo
Fixes #13535.
2012-07-22Keg#unlink: check destination before unlinkingMisty De Meo
Rather than skip unlinking if there's no linked keg record, check to see whether the destination's realpath is the same as the source file in the keg being unlinked.
2012-07-20brew unlink: don't unlink an unlinked formulaMisty De Meo
This caused weird issues in the case that multiple formulae provide the same file.
2012-07-12Update Xcode checks for 10.8Misty De Meo
2012-07-12doctor: fix incorrect usage of 'or'Jack Nagel
Eventually I will stop making this mistake. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-11use keg.linked?Adam Vandenberg
2012-07-09ARGV: add .dry_run? methodMisty De Meo
Add an ARGV.dry_run? helper method for '--dry-run'/'-n' now that '-n' is being used as a git-style dry-run in two commands. Closes #12898. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-09link: add --force and --dry-run optionsMisty De Meo
`brew link` can now be made to delete any conflicting files using the --force argument. It also has a --dry-run option, similar to git clean -n, which will list any files which would be deleted without touching the filesystem. Closes #11811. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-08Restore some things to failed install config dumpJack Nagel
Closes #11091. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08Display compiler build numbers in config dumpJack Nagel
But only display them if they are out of sync with the corresponding Xcode version. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08Always output X11 version and path in config dumpJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08fetch: remove dead codeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-07doctor: update xcode chceckAdam Vandenberg
* 4.3.3 is the latest on 10.7 * Give up if we don't know what the latest is (10.8 and beyond)
2012-07-04Give SoftwareSpec an initializerJack Nagel
Tools like `brew create` need to create and manipulate SoftwareSpec objects. It is useful to be able to do this directly, rather than by proxy through the special methods that serve the main formula DSL. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Teach download strategies to take a SoftwareSpecJack Nagel
Now that a URL, version, and the (for lack of a better term) "specs" associated with said URL (e.g. the VCS revision, or a download strategy hint) are neatly bundled up in a SoftwareSpec object, it doesn't make sense to pass them individually to download strategy constructors. These constructors now take only the formula name and a SoftwareSpec as parameters. This allows us to move mirror handling out out of Formula#fetch and into the download strategies themselves. While doing so, we adjust the mirror implementation a bit; mirrors now assume the same "specs" as their owner's URL. They are still only useable by the CurlDownloadStrategy, but this provides a basis for extending mirror support to other strategies. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04fetch: use new checksum verificationJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Refactor download strategy detectionJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>