aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2013-01-29Don't print git origin check without git repoMisty De Meo
2013-01-28doctor: fix typoJack Nagel
2013-01-27audit: hint about depends_on ClassAdam Vandenberg
2013-01-27doctor: fix transposed git commandSema
Closes Homebrew/homebrew#17338. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-01-26audit: warn about nonexistent options passed to depsJack Nagel
2013-01-26upgrade: use standard Tab accessorJack Nagel
Yes, the formula object does refer to a version that has not yet been installed, but we were not looking into Formula#prefix, but #linked_keg, which is version agnostic (since the original patch was committed, we Tab#for_formula learned to look into #opt_prefix as well). The rest of the logic is already embedded in the Tab accessors.
2013-01-26Replace usages of recursive_deps with recursive_dependenciesJack Nagel
2013-01-26upgrade: offload dependency expansion to FormulaInstallerJack Nagel
Now that FormulaInstaller does dependency expansion the _right_ way, avoid duplicating the logic in upgrade. Instead, offload it to the installer, which will generate an exception in check_install_sanity that we can safely ignore when formulae in the outdated list are upgraded as part of the dependency tree of another outdated formula.
2013-01-26uses: utilize modern dependency APIJack Nagel
2013-01-26missing: ignore unused optional and recommended depsJack Nagel
2013-01-26FormulaInstaller: don't install bottle if options were passedJack Nagel
2013-01-26FormulaInstaller: make tab an attr, but never a parameterJack Nagel
2013-01-26FormulaInstaller: implement installation locksJack Nagel
FormulaInstaller now attempts to take a lock on a "foo.brewing" file for the formula and all of its dependencies before attempting installation. The lock is an advisory lock implemented using flock(), and as such it only locks out other processes that attempt to take the lock. It also means that it is never necessary to manually remove the lock file, because the lock is not enforced by I/O. The uninstall, link, and unlink commands all learn to respect this lock as well, so that the installation cannot be corrupted by a concurrent Homebrew process, and keg operations cannot occur simultaneously.
2013-01-26brew-cleanup: don't whine about permission denied.Mike McQuaid
Closes Homebrew/homebrew#14359.
2013-01-26brew-fetch: remove MD5 output.Mike McQuaid
2013-01-23Check ownership of logs folderAdam Vandenberg
Closes Homebrew/homebrew#16607.
2013-01-23brew search looks in samueljohn/python, too.Samuel John
Closes Homebrew/homebrew#17267. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-23Add Homebrew-completions to searchAdam Vandenberg
2013-01-21brew upgrade: improve exit codes.Matt Di Pasquale
exit 1 if formulae given but none outdated Closes Homebrew/homebrew#17199. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-01-17doctor: loosen git origin regexpJack Nagel
If the repository is set up by `brew update`, the remote URL is https://github.com/mxcl/homebrew.git, but if it is set up by the install script, the .git suffix is omitted.
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