8377 Commits

Author SHA1 Message Date
Vlad Shablinsky
622a8502dc add manpages 2015-08-10 13:57:59 +01:00
Vlad Shablinsky
6b0927944a update: handle renames on update 2015-08-10 13:57:59 +01:00
Vlad Shablinsky
7079a00aa7 add test/test_migrator 2015-08-10 13:57:59 +01:00
Vlad Shablinsky
abf6b6f6cf add migrate command for migrating renamed 2015-08-10 13:57:59 +01:00
Vlad Shablinsky
fa8b702c0d uninstall: change logic to handle renames 2015-08-10 13:57:59 +01:00
Vlad Shablinsky
6a0dcc8324 don't use new name rack if old name rack is a dir
Everything that used HOMEBREW_CELLAR/canonical_name
could point to something that doesn't exist because
loader_for tries to load new name formula if no old
name found. However there can be software installed
from path with the same name that renamed formulae
had and we still need to link/unlink/uninstall etc
that software. The solution is Formulary#to_rack
method that returns rack for given name.
- Add Formulary#to_rack
- Update ARGV.kegs
- Update cmd/switch
2015-08-10 13:57:59 +01:00
Vlad Shablinsky
2cc6b90329 formulary: change logic for renamed formulae 2015-08-10 13:57:59 +01:00
Vlad Shablinsky
ab1164f4de exceptions: add TapFormulaWithOldnameAmbiguityError
- TapFormulaWithOldnameAmbiguityError is an exception raised when
multiple tap formulae available for given old name
2015-08-10 13:57:59 +01:00
Vlad Shablinsky
832c5875b0 add migrator class for migrating renamed formulae 2015-08-10 13:57:59 +01:00
Vlad Shablinsky
556ab3bcd6 audit: add rules for naming
- restrict old names as names of new formulae
- warn about dependencies on old names
2015-08-10 13:57:58 +01:00
Vlad Shablinsky
ae9bf4aaaa formula: add oldname method
- add Formula#oldname to get oldname for formula
- add formula_renames.rb to store information about formula renames
2015-08-10 13:57:58 +01:00
Vlad Shablinsky
d88750652a tap: add formula_renames
- Tap#formula_renames is a method used for getting information
about renames in tap formulae.
2015-08-10 13:57:58 +01:00
CNA-Bld
77ee9bd446 update man page
Closes Homebrew/homebrew#41736.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-10 12:17:26 +01:00
CNA-Bld
56fcfdbea0 update documentation 2015-08-10 12:17:26 +01:00
CNA-Bld
4165b34dde add pinned taps count to brew tap-info 2015-08-10 12:17:26 +01:00
CNA-Bld
f3f8ca953f add pin info to tap-info 2015-08-10 12:17:26 +01:00
CNA-Bld
194618beb8 implement formulary#find_with_priority 2015-08-10 12:17:26 +01:00
CNA-Bld
1a82b2133e implement pinning of taps 2015-08-10 12:17:25 +01:00
CNA-Bld
fda82b0b64 add /Library/PinnedTaps to .gitignore 2015-08-10 12:17:25 +01:00
Dominyk Tiller
970992d5bf audit: prune redundant code 2015-08-10 02:39:38 +01:00
Dominyk Tiller
d25d3b07da audit: flag insecure launchpad 2015-08-10 02:25:59 +01:00
Xu Cheng
df999067d6 ARGV#resolved_formulae: use canonical_name to locate rack
Closes Homebrew/homebrew#42537.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-09 20:09:57 +08:00
Rafael Kitover
74b18bfe12 put caveats in finish after post_install Homebrew/homebrew#42565
When running brew -v install, long post_install output from the formula,
presumably from upstream, may hide the important instructions in the
caveats and confuse the user. For example, postgresql runs initdb which
prints its own instructions for running the database, making the caveats
scroll off screen.

Per xu-cheng's instructions in Homebrew/homebrew#42565 :

Remove the explicit call to caveats from the install, reinstall, and
upgrade commands, as well as the dependency installer code in
FormulaInstaller#install_dependency , and call caveats right before the
summary code in FormulaInstaller#finish .

Closes Homebrew/homebrew#42565.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-09 20:08:42 +08:00
Mike McQuaid
3518cda792 audit: allow assert !.*.include?.
Came up on Homebrew/homebrew#34573.
2015-08-09 09:33:33 +01:00
Dominyk Tiller
7a13f82297 echoping: to the boneyard
Closes Homebrew/homebrew#42644.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-08-09 03:58:21 +01:00
Viet Hung Nguyen
9a40257a62 Troubleshooting.md: matching parenthesis
Closes Homebrew/homebrew#42653.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2015-08-08 08:26:40 -07:00
Xu Cheng
e60dc64828 only run post_install if it's defined
Closes Homebrew/homebrew#42593.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-08 17:50:49 +08:00
Xu Cheng
8fecd4c198 help: remove obsoleted argument 2015-08-07 19:36:29 +08:00
Mike McQuaid
7a47102511 Troubleshooting: don't report the update issue plz 2015-08-07 12:20:37 +01:00
Xu Cheng
3c8a19777d update: handle more exceptions
Closes Homebrew/homebrew#42558.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-07 13:42:31 +08:00
Dominyk Tiller
3369c55dc6 languages: support both luas 2015-08-06 18:46:56 +01:00
Alexis Hildebrandt
f78a63984b audit: add check for indefinite article
at the beginning of desc.

Closes Homebrew/homebrew#42404.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-08-06 18:10:48 +01:00
Xu Cheng
09e0bcf1fc update: loading core files at the beginning
This should help to prevent similar situation of Homebrew/homebrew#42553 happening in the
future.
2015-08-06 22:51:36 +08:00
Xu Cheng
7c72b0c68a backport flat_map for Ruby 1.8
Code is copied from
https://github.com/marcandre/backports/blob/master/lib/backports/1.9.2/enumerable/flat_map.rb
(MIT License by Marc-Andre Lafortune)

Closes Homebrew/homebrew#42543.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-06 22:33:46 +08:00
Xu Cheng
ae0e270727 favor flat_map over map...flatten 2015-08-06 22:33:46 +08:00
Xu Cheng
4e5227fd4e test_formula: add test_facotry_with_fully_qualified_name
Closes Homebrew/homebrew#42550.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-06 22:28:44 +08:00
CNA-Bld
68a5b1fe46 add fully qualified name for core formulae 2015-08-06 22:28:44 +08:00
Xu Cheng
0c774cff50 hardware: temporary disable rubocop method rename rule
Closes Homebrew/homebrew#42540.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-06 17:23:56 +08:00
Xu Cheng
8f20ea92b3 test_inreplace: temporary disable rubocop string replacement rule 2015-08-06 17:23:56 +08:00
Xu Cheng
b121e5fd7b more core file style updated by rubocop 2015-08-06 17:23:56 +08:00
Xu Cheng
3f8ce5f1a9 update rubocop to 0.33.0 2015-08-06 17:23:55 +08:00
Xu Cheng
2c3084a0a2 style: allow passing arbitrary file paths 2015-08-06 17:23:55 +08:00
Alexis Hildebrandt
e9180b39f5 audit: simplify command-line spelling check
Closes Homebrew/homebrew#42403.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-08-05 20:19:40 +01:00
Ian Lancaster
65dbdccfc0 Formula-Cookbook: avoid non-with options
Closes Homebrew/homebrew#42433.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-08-05 20:08:54 +01:00
Dominyk Tiller
150a9fe514 audit: flag plaintext mirrorservice 2015-08-05 19:45:24 +01:00
Baptiste Fontaine
1bb9c56e9c test-bot: run postinstall on dependencies
Closes Homebrew/homebrew#36027.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-05 20:24:06 +02:00
Misty De Meo
176e55386c ARGV: don't downcase bottle filenames
Fixes Homebrew/homebrew#42470.
2015-08-05 09:51:37 -07:00
Dominyk Tiller
4f549da115 formula_support: add provided_pre_mavericks
Closes Homebrew/homebrew#42460.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-08-04 21:26:36 +01:00
Dominyk Tiller
e1d736a0fa Formula-Cookbook: tweak conflicts_with
Closes Homebrew/homebrew#42432.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-08-04 01:40:15 +01:00
Baptiste Fontaine
3a733cad09 shell completion of official taps added to 'brew tap'
Closes Homebrew/homebrew#42421.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-03 23:37:00 +02:00