aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2013-01-17Doctor check for originSimon Sigurdhsson
Added checks on doctor.rb for: * Missing git origin * git origin not pointing at mxcl/homebrew Tests use `git config --get remote.origin.url`. Also added printout of origin to --config.rb. Fixes Homebrew/homebrew#14399. Closes Homebrew/homebrew#17117. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-01-14options: sort options consistentlyJack Nagel
2013-01-14info: sort conflicts consistentlyJack Nagel
2013-01-14Restore keg-only caveatsJack Nagel
Fixes Homebrew/homebrew#16989.
2013-01-14Fix uses cmdChad Catlett
Fixes Homebrew/homebrew#17074. Closes Homebrew/homebrew#17075. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-13Remove <=> from Dependency interfaceJack Nagel
It is important that dep equality corresponds to the name attribute, but we may want to use the Comparable interface to sort them by installation order in the future. Code that needs to sort them alphabetically should just use sort_by.
2013-01-10Don't attempt installation multiple timesJack Nagel
When a dependency of a formula specified on the command-line is also specified, *after* the dependent formula, installation proceeds as part of the dependent's dependency tree and then is attempted again because the user asked for it explicitly. This results in the installer raising a CannotInstallFormulaError because it has already been installed. For example: $ brew install graphviz pkg-config ==> Installing graphviz dependency: pkg-config ... ==> Installing graphviz ... Error: pkg-config-0.27.1 already installed We already have a mechanism for dealing with this, but it does not kick in early enough. Move the installation attempt check into FormulaInstaller#check_install_sanity and catch the exception in the appropriate places. Fixes Homebrew/homebrew#16957.
2013-01-09doctor: use -V for python versionMisty De Meo
`python --version` doesn't work in some (very) old versions of python. While I doubt this is going to come up very often, it's theoretically possible someone has an old python first in their path. (python -V works on all versions I'm aware of, including python3, and comes before --version in the --help anyway.) Also skips the warning in case the regexp matches nothing, which probably shouldn't happen. But if it does we shouldn't produce the wrong warning.
2013-01-08Don't remove linked formulas when doing a 'cleanup'Mike Lapinsky
Closes Homebrew/homebrew#16947. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-08Prune LinkedKegs relative to correct pathJack Nagel
Fixes Homebrew/homebrew#16948.
2013-01-07Detect when tests are definedJack Nagel
2013-01-06brew update: warn about adamv/homebrew-altAdam Vandenberg
2013-01-04audit: remove silly audit, remove duplicate auditAdam Vandenberg
2013-01-03audit: check conflict namesAdam Vandenberg
2013-01-02Add caveats class and use in brew info.Mike McQuaid
Probably a better approach than reverted e721c7. Fixes Homebrew/homebrew#16604.
2012-12-27Respect BROWSER environment variableJack Nagel
2012-12-27Replace sceaga/homebrew with mistydemeo/tigerbrewMisty De Meo
@sceaga has discontinued his homebrew fork, so tigerbrew is now PPC/ Tiger users' best bet.
2012-12-22doctor: add helper for printing file listingsJack Nagel
2012-12-21doctor: f.prefix is already a pathnameJack Nagel
2012-12-21doctor: print offending paths in check_for_gettextJack Nagel
c.f. Homebrew/homebrew#16688.
2012-12-21doctor: rename path_folders to pathsJack Nagel
2012-12-21doctor: use a more rubyish conditionalJack Nagel
2012-12-21doctor: avoid pointless creation of pathname objectJack Nagel
2012-12-21doctor: run slowest checks lastJack Nagel
2012-12-19cleanup: fix 1.8.6 compatibilty issueJack Nagel
Fixes Homebrew/homebrew#16655.
2012-12-18upgrade.rb: Generate Tab from Keg not FormulaCharlie Sharpsteen
Two issues were preventing `brew upgrade` from functioning properly: - `Tab.for_formula` was used to recover options from prior installs. The problem is that during an upgrade `for_formula` will be directed to a non-existant install of the newer version and thus returns a forged tab claiming no options were invoked. - The assignment to `installer.install_bottle` requires parenthesis in order to function properly.
2012-12-17Better reporting for MacPorts/Fink installationsJack Nagel
closes Homebrew/homebrew#15853.
2012-12-16Revert "Add launchctl_instructions method"Jack Nagel
This code makes assumptions about the existence of prefix which are valid in the context of the installer, but not necessarily in the context of `brew info`, thus `brew info` on an outdated formula errors out. This reverts commit e5b53dd64b769b67805d1054d906f7083939d905.
2012-12-16Add launchctl_instructions methodLorenzo Manacorda
Closes Homebrew/homebrew#16604. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-12-16Check if Cellar and Cache exist before cleaning.Mike McQuaid
2012-12-12Improve Xcode and CLT config reportingJack Nagel
We support three configurations: Xcode-only, CLT-only, and Xcode with CLT. Our configuration output should correctly reflect this. While MacOS::Xcode.version has to continue to return a guess if Xcode is not installed in order to maintain backwards compatibility, this is an implementation detail that we don't need to expose to the user. And it makes `brew --config` output confusing. So let's only print the "Xcode" line when an actual Xcode installation is present. This makes it easy to quickly figure out which of the three possible configurations the user is running. Addresses Homebrew/homebrew#14941, more or less.
2012-12-08doctor: don't check keg-onlies if cellar doesn't existJack Nagel
2012-12-04proper version sort in `outdated` commandMislav Marohnić
c.f. Homebrew/homebrew#16382. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-12-04propert version sort in `info` commandMislav Marohnić
Closes Homebrew/homebrew#16382. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-12-04brew-cleanup: check whether keg is a directory.Xiyue Deng
* Avoid problem when encountering `.DS_Store' in Cellar. Closes Homebrew/homebrew#16356. Closes Homebrew/homebrew#16388. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-11-30brew cleanup: don't remove higher version kegs.Xiyue Deng
* Use version compare to only remove kegs with lower version than the current one, not higher version which might be from someone's branch. * Do the same for cache cleanup. - Be conservative so that if a name detected from cache file is not the same as its formula then don't clean it. Closes Homebrew/homebrew#15914. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-11-26Whitelist 10.8.2 Supplemental Update static libs.Mike McQuaid
Fixes Homebrew/homebrew#16215.
2012-11-13bash completion for doctor checksJack Nagel
2012-11-12Don't advise XQuartz upgrades for system X11Jack Nagel
Yeah, yeah. The XQuartz/X11 stuff is confusing.
2012-11-12exclude repository from brew list --unbrewedAdam Vandenberg
2012-11-11doctor checks XQuartz versionAdam Vandenberg
Closes Homebrew/homebrew#14182.
2012-11-11Use a class for FORMULA_META_FILESAdam Vandenberg
* lets more text types get picked up * better filter for `brew list`
2012-11-10Exclude the cache from `brew list --unbrewed`Adam Vandenberg
If you have relocated your HOMEBREW_CACHE under HOMEBREW_PREFIX, then don't show these files as "unbrewed".
2012-11-06Fix curlrc existence checkJack Nagel
Enumerable#one? is not available under Ruby 1.8.6. Further, we really want #any? here, as setting both HOME and CURL_HOME can trigger a false negative. Fixes Homebrew/homebrew#15883.
2012-11-06Hoist top-level directory list into a constantJack Nagel
2012-11-03doctor: Remove fuse.pc from the whitelistCharlie Sharpsteen
Having a third-party `fuse.pc` file will conflict with the `fuse4x` formula.
2012-11-01Error out on lowercase --head parameter to install.Adam Vandenberg
Fixes Homebrew/homebrew#14815.
2012-10-28brew-update: Guard non-directory files in TapsCharlie Sharpsteen
Skip any entries returned by `Dir["Library/Taps/*"].each` that are not directories.
2012-10-28Specify where to get the CLT packageMax Howell
2012-10-28Homebrew should not ignore curlrcStephen Nelson
Added doctor check for .curlrc rather than silently ignoring it (#13836). Closes Homebrew/homebrew#15419. Signed-off-by: Max Howell <mxcl@me.com> Removed test in doctor where it actually curl'd a file. It's enough to warn if the curlrc exists. I understand people want to remove the warnings, but the point in the doctor is to help diagnose and not to be some ramification of your UNIX system.