aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2015-09-02update: ensure git is installedXu Cheng
2015-08-31cmd/search: fix filtering of aliases in resultsAlex Dunn
By directly modifying the results array with `results[i] = "#{name} (installed)"`, it appeared on successive iterations that the canonical name was no longer in the array, so aliases were not removed. See https://github.com/Homebrew/homebrew/commit/9efe5b554ce9cf6626d9794173725f5e063e5806#commitcomment-12969631 Closes Homebrew/homebrew#43433.
2015-08-31config: show HOMEBREW_REPOSITORYBaptiste Fontaine
Closes Homebrew/homebrew#43423. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-30cmd/search: mark installed formulaeAlex Dunn
`brew search emacs`, with homebrew/emacs tapped: ``` real 0m2.586s user 0m1.138s sys 0m0.121s ``` Previously: ``` real 0m2.831s user 0m1.385s sys 0m0.087s ``` `brew search s`: ``` real 0m2.260s user 0m1.201s sys 0m0.114s ``` Previously: ``` real 0m5.953s user 0m4.827s sys 0m0.226s ``` Closes Homebrew/homebrew#35696. Closes Homebrew/homebrew#42662.
2015-08-29More API documentation.Mike McQuaid
And remove the documented stuff from the `example-formula.rb`. Closes Homebrew/homebrew#43241. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-28tap: rmdir when tap failed or interruptedXu Cheng
Fixes Homebrew/homebrew#43280. Closes Homebrew/homebrew#43352. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-28update: secure formula loading in renameXu Cheng
For update, all formula loading need to be secured by `rescue`. Otherwise it's easy to crash `brew update` for vasty reasons, e.g. new Formula DSL. Closes Homebrew/homebrew#43353. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-27update: always report changes to branch 'master'Martin Afanasjew
If the user's working copy is *not* on the 'master' branch, the revision recorded after the update to the 'master' branch is not the one of the updated 'master' branch but that of whatever the user's current branch is. This tends to be not very helpful. This change records the revision *after* the update to the 'master' branch, but *before* switching back to the user's current branch prior to the update, effectively causing the report to show changes to the 'master' branch. Closes Homebrew/homebrew#42074. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-27outdated: update error for different tapsVlad Shablinsky
Closes Homebrew/homebrew#43269. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-27install: fix if isn't migratedVlad Shablinsky
2015-08-27pull: more formulae fetch outside of main loop.Mike McQuaid
Closes Homebrew/homebrew#43313. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-27test-bot: don't consider optional deps for compiler selectionTim D. Smith
Fixes test-bot mishandling of optional cross-tap dependencies. Without this change, since formula.stable.deps includes the optional dependencies but formula.recursive_dependencies does not, test-bot was trying to select a compiler for an untapped formula, which raised an error. Our suspect handling of optional dependencies was exposed by Homebrew/homebrew#43145 / 7184348e822d6745d8a103de104ff9626536bf1e. Closes Homebrew/homebrew#43237.
2015-08-26doctor: add system curl <10.7 checkDominyk Tiller
Closes Homebrew/homebrew#43283. Closes Homebrew/homebrew#43298. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-08-26doctor: add check for SSL_CERT_DIRDominyk Tiller
Closes Homebrew/homebrew#43154. Closes Homebrew/homebrew#43277. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-08-25sandbox: permit /var/tmp & DerivedDataDominyk Tiller
Long term it would be nice to sandbox everything that writes to DerivedData but it is essentially a cache directory of sorts. The downside of allowing stuff to write there particularly is that DerivedData is notoriously bad at getting cleaned up, so if you do a lot of Xcode-using installations very quickly, you can chew your disk space up. Closes Homebrew/homebrew#43276. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-08-25pull: do fetch after everything else, sleep more.Mike McQuaid
Use an exponential back-off on the sleep and try the fetch more times. Hopefully this will mean that we spent less time waiting for Bintray. Closes Homebrew/homebrew#43240. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-25audit: spelling fixDaniel Lee Harple
Closes Homebrew/homebrew#43273. Signed-off-by: Tim D. Smith <git@tim-smith.us>
2015-08-25tap-pin: simplify logicBaptiste Fontaine
2015-08-25tap-unpin: simplify logicBaptiste Fontaine
Closes Homebrew/homebrew#43260. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-25update: #each.map is redundantBaptiste Fontaine
2015-08-22core file style updateXu Cheng
2015-08-21Merge bottle install without Xcode branchMisty De Meo
Merge branch 'bottle_hooks'
2015-08-21Mark TODO in brew doctor (future PR)William Woodruff
2015-08-21Call check_xcode check for CLT, tooWilliam Woodruff
2015-08-21Add guards to calls that would trigger Xcode install requestsWilliam Woodruff
add guard in Formula#file_modified? to prevent git popup add guard in Superenv.bin before calling MacOS::Xcode.version add guard against missing Xcode/CLT in Xcode.uncached_version return nil instread of 0 in uncached_version when Xcode/CLT are not present, to distinguish from linuxbrew behavior checks against pour_bottle? and needs_relocation?, add guard around keg.relocate_install_names to check pour_bottle?/needs_relocation? as well needs_relocation? becomes skip_relocation?, use cellar attr to indicate relocation instead of does_not_need_relocation MacOS.can_build? becomes MacOS.has_apple_developer_tools?
2015-08-21FormulaInstaller: add prevent_build_flags to eliminate code repetitionWilliam Woodruff
remove unneeded definition change variable in FormulaInstaller.check_build_flags from bf to build_flags
2015-08-21Install: add BuildToolsError and BuildFlagsErrorWilliam Woodruff
Add these new errors, and guards in formula installation and cmd/{,un,re}install to match, move can_build? to the MacOS module, flatten conditions, remove redundant can_build? check reinstate removed (doctor) check
2015-08-21MacOS: update locate_cctoolWilliam Woodruff
This becomes MacOS.{install_name_tool,otool}, only do check_xcode if xcode is installed, otherwise emit a warning
2015-08-21Requirements: add CctoolsRequirementWilliam Woodruff
Install it as a dependency unless already satisfied by Xcode. require cctools_requirement cctools_requirement should be satisfied by cctools present in opt add build_env => false to the satify block options in CctoolsRequirement
2015-08-21Install: remove check_for_bad_install_name_toolWilliam Woodruff
Until it can be adapted to not call otool on systems w/o XCode/CLT
2015-08-21tap: add --list-pinnedXu Cheng
2015-08-21test-bot: tap TapDependency recursivelyXu Cheng
Closes Homebrew/homebrew#43145. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-20update: only update renamed when necessaryXu Cheng
2015-08-20update: add formula renames to reportVlad Shablinsky
2015-08-18uninstall: simplify logicXu Cheng
Also reduce unnecessary disk operations Closes Homebrew/homebrew#43024. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-18unnecessary calls to .select simplifiedBaptiste Fontaine
These are minor perf optimizations. Closes Homebrew/homebrew#43028. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-17Suggest 'brew uninstall' everywhere for consistencyBaptiste Fontaine
Mixing 'brew remove' with 'brew uninstall' can confuse users. Closes Homebrew/homebrew#43026. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-17enable sandbox on test-botXu Cheng
Closes Homebrew/homebrew#43014. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-16cleanup: require threadDominyk Tiller
2015-08-17cleanup: speed up rm_DS_Store by multithreadXu Cheng
Before ``` $ time brew cleanup -s brew cleanup -s 0.73s user 3.52s system 58% cpu 7.297 total ``` After ``` $ time brew cleanup -s brew cleanup -s 0.69s user 2.57s system 139% cpu 2.341 total ``` Closes Homebrew/homebrew#42968. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-17update opt for renamed formulaVlad Shablinsky
After the formula gets renamed oldname opt is created and it points to the linked keg. However if we then upgrade newname oldname opt still points to the same keg it pointed before upgrade. The commit fixes this behaviour thus that oldname opt links at the same keg opt point.
2015-08-16cleanup: fix reversed prune time.Mike McQuaid
2015-08-16cleanup: tweak prune code.Mike McQuaid
2015-08-16cleanup: make --force less aggressiveMartin Afanasjew
Change behavior for `brew cleanup` as follows: - If `--force` is supplied, remove only outdated keg-only packages. - If `--prune=<days>` is supplied, remove both logs and cached downloads older than the specified number of days. Use `--prune=all` to remove all logs and cached downloads irrespective of age. - By default, remove logs after 14 days and cached downloads never. Also centralizes handling of `--prune`, thus removing duplicate logic. This is motivated by commit 17eee232838d4639b25f863aa342b1dda61b81bc that made `--force` much more aggressive and made it override whatever was specified via `--prune`, completely removing all: - outdated keg-only packages - cached downloads irrespective of age - logs irrespective of age This made it impossible to remove outdated keg-only packages without also deleting all cached downloads, which is at least inconvenient for people with limited bandwidth wanting to rebuild packages later. Closes Homebrew/homebrew#42970. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-15update: only compute tapd_basename when necessaryXu Cheng
2015-08-15outdated: remove unnecessary nested ifXu Cheng
2015-08-15install: f.oldname can be nilXu Cheng
2015-08-14install: mention if installed formula isn't migrated.Mike McQuaid
Closes Homebrew/homebrew#42940. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-14outdated: check if formula needs to be migrated.Mike McQuaid
Closes Homebrew/homebrew#42938.
2015-08-14doctor: suggest to install git if the system one is outdatedBaptiste Fontaine
Closes Homebrew/homebrew#42934. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>