aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2015-10-30create: deprecate --macports and --finkBaptiste Fontaine
Closes Homebrew/homebrew#45465. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-30audit: uniformize the desc problemsBaptiste Fontaine
Closes Homebrew/homebrew#45492. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-30audit: flag descs starting with the formula nameBaptiste Fontaine
Closes Homebrew/homebrew#45493. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-29doctor: Fix typo in uncommitted modifications warning messageBen White
Closes Homebrew/homebrew#45443. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-28create: accept HEAD urlsBaptiste Fontaine
Fixes Homebrew/homebrew#45310. Closes Homebrew/homebrew#45336. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-27The Formula API is no longer work-in-progress.Mike McQuaid
Feature it a bit more prominently in the documentation as a result. Closes Homebrew/homebrew#45374. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-27update: use git stash silently.Mike McQuaid
There's been a few issues where users have been confused about these errors. They may have modified stuff but we probably don't care about telling them that unless we're debugging other issues. Closes Homebrew/homebrew#45373. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-26cat: raise unless object is formulaeDominyk Tiller
Until a point in time when the Cask/Homebrew codebases are harmonised a little more it probably makes sense to refuse to `cat` Casks. Right now the Homebrew codebase is only minimally aware of what a Cask is. Fixes Homebrew/homebrew#45300. Fixes Homebrew/homebrew#44630. Closes Homebrew/homebrew#45302. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-10-26commands: ensure internal commands are filesXu Cheng
`Pathname#children(with_directory = false)` doesn't filter directories, instead it returns path with basename. Closes Homebrew/homebrew#45325. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-24audit: add bottle modifier checksDominyk Tiller
* Checks for placement of the bottle modifier variable. * Checks there isn't a bottle modifier and a bottle do block - The former makes the latter redundant. Closes Homebrew/homebrew#45146. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-10-23audit: merge the template comments checksBaptiste Fontaine
Closes Homebrew/homebrew#45263. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-23audit: warn about unknown bottle modifiersBaptiste Fontaine
This prevents typos like `bottle :uneeded` or `bottle :disable` Closes Homebrew/homebrew#45264. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-23os: centralize check for pre-release OS X versionsMartin Afanasjew
Provide `OS::Mac.prerelease?` for pre-release checks and use it where appropriate. This should simplify updating the test once a new OS X release lands. This also fixes a bug in `BuildError#dump`, where an empty warning message was printed on El Capitan after a failed from-source build, because the check there and the one in `check_for_unsupported_osx` were out of sync. Closes Homebrew/homebrew#45257. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-20test-bot: fix testing builds building everything.Mike McQuaid
We don't care about the formulae that have changed since the last commit so just ignore it.
2015-10-20linkapps: stop linking .app bundles from 'bin/'Martin Afanasjew
`Keg#app_installed?` only checks the formula prefix and `libexec/` for .app bundles to determine if a formula provides any. This is used by `Caveats#app_caveats` to generate an appropriate message. The same list should be used by `brew linkapps` for consistency. Reduce likelihood of future inconsistencies by creating `Keg#apps` and using it in place of the duplicate code. Closes Homebrew/homebrew#45173. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-20unlinkapps: avoid deleting too many symlinksMartin Afanasjew
Use `start_with?` to make sure the symlink actually points into one of the Homebrew directories (depending on given arguments). Previously, only a substring match was used, which would also remove a symlink to a hypothetical `/opt/unrelated/usr/local/opt/Unrelated.app`. Even if unlikely to occur, altering stuff unrelated to Homebrew is bad. Furthermore, make sure to always use a trailing slash with directories. Otherwise, e.g., `brew unlinkapps qt` will unlink .app bundles of both `qt` and `qt5` if both are installed and `brew linkapps qt qt5` was issued before. (Please ignore that `qt` and `qt5` offer a conflicting set of .app bundles. This will have to be addressed elsewhere.) Closes Homebrew/homebrew#45174. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-20test-bot: remove duplicated conflicts unlinkingXu Cheng
2015-10-20test-bot: install bottle unneeded formulae in --fast modeXu Cheng
2015-10-19test-bot: don't use `--build-bottle` flag if bottle disabledXu Cheng
2015-10-19test-bot: skip bottling if it's unneededXu Cheng
2015-10-19bottle: fail if bottle is disabledXu Cheng
2015-10-19install: make search output more intuitive.Eric Andrew Lewis
Closes Homebrew/homebrew#42222. Closes Homebrew/homebrew#44892. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-18MacOS: full_version addedBaptiste Fontaine
Closes Homebrew/homebrew#44988. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-17uninstall: fix indentXu Cheng
2015-10-17uninstall: fix when Cellar doesn't existXu Cheng
2015-10-16tap-info: tweak output for two edge casesMartin Afanasjew
Improve output in the (rare) cases where a tap offers both commands and formulae or neither. Also adjust code to stay below the 80 column limit. Closes Homebrew/homebrew#44995. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-16update: report tap updates and improve wordingMartin Afanasjew
Closes Homebrew/homebrew#43468. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-15commands: ensure external commands are executableMartin Afanasjew
For consistency with `brew command` and the logic in `brew.sh` (both use `which` to find/validate an external command), we need to filter files that are not executable. Otherwise `brew commands` and thus bash completion will offer commands that will produce an error when attempting to use them. Closes Homebrew/homebrew#44999. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-15search: various improvementXu Cheng
* Move listing all formula names in the top to speed up shell script. * Simplify logic. * Only search PR and check bad regex for tty?, which will benefit to shell script. Closes Homebrew/homebrew#44985. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-15search: highlight installed formulaeXu Cheng
2015-10-15test-bot: remove unused --tap args for brew bottleXu Cheng
2015-10-15test-bot: ensure cleanup is runningXu Cheng
Closes Homebrew/homebrew#44982. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-15test-bot: merge formula's bottle before testXu Cheng
Fixes the bug described in https://github.com/Homebrew/homebrew-science/pull/2866#issuecomment-148298146
2015-10-15bottle: allow --merge --write without commitXu Cheng
2015-10-15update: highlight installed formulae in reportMartin Afanasjew
Closes Homebrew/homebrew#44335. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-14test-bot: readd missing --build-bottle.Mike McQuaid
2015-10-14test-bot: ensure install_passed is always definedBaptiste Fontaine
2015-10-14update: allow updating from local branchVlad Shablinsky
Closes Homebrew/homebrew#44893. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-14test-bot: make master builds faster.Mike McQuaid
Just do a few things rather than doing e.g. a full compile. Closes Homebrew/homebrew#44936. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-14test-bot: update diff_start_sha1 unconditionallyXu Cheng
See bfab4b0e65db4667ab09159b1040701fa75ec687 Closes Homebrew/homebrew#44889. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-13let the user know what exactly was already tappedSøren Brokær
Closes Homebrew/homebrew#44843. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-10test: allow writing to certain var directoriesXu Cheng
Closes Homebrew/homebrew#44458. Closes Homebrew/homebrew#44773. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-10postinstall: sanitize ARGV optionsXu Cheng
2015-10-10audit: use ARGV.resolved_formulaXu Cheng
There are audit rules which check cellar. Therefore, we need `ARGV.resolved_formula` to get proper spec and prefix. Closes Homebrew/homebrew#44781. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-10test: sanitize ARGV optionsXu Cheng
Otherwise, it will use the wrong prefix to test devel/HEAD install.
2015-10-10search: don't fail because broken formulaeXu Cheng
Fixes Homebrew/homebrew#44687. Closes Homebrew/homebrew#44770. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-09use directory? to check rack existenceXu Cheng
2015-10-08handle TapFormulaWithOldnameAmbiguityErrorXu Cheng
Closes Homebrew/homebrew#44705. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-07audit: fix GitHub repository auditDaniel Lee Harple
In the data returned from the GitHub API, “watchers_count” is actually the number of stars. See https://developer.github.com/v3/activity/starring/#starring-vs-watching Closes Homebrew/homebrew#44477. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-07audit: add check for 'head' and 'head do' both presentAndrew Janke
Closes Homebrew/homebrew#44626. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>