EricFromCanada
aee23ccb03
Add more flags and descriptions to man pages.
2017-03-05 21:45:15 -05:00
EricFromCanada
afc539f86e
Update brew's man page formatting and grammar
...
Also update command specifications to match descriptions.
2017-02-25 17:37:57 -05:00
Xu Cheng
22f294af90
bottle: fix regex
...
Noted that this is intended for the revision of this formula instead of
rebuild of a bottle.
2017-01-22 19:50:14 +08:00
Zhiming Wang
42486c1181
bottle: add: improve regexp to recognize comments
...
This would have eliminated the need for Homebrew/homebrew-core#9000 , for
instance.
2017-01-17 10:26:01 -05:00
William Woodruff
d07b9ed7f2
Replace Utils::JSON with corelib JSON calls.
2016-11-20 20:06:25 -05:00
ilovezfs
c5bd5c4aa7
bottle: improve relocatability check
...
Given how common it is for formulae to hard-code `etc` and `var`, check
for those paths (`/usr/local/etc` and `/usr/local/var`) when determing
relocatability.
2016-11-06 04:00:14 -08:00
Zhiming Wang
dd527bfcdc
bottle: fix nonexistent pyc bug
...
We were deleting pyc files *after* replace_locations_with_placeholders
and recording changed_files, meaning that some of the recorded files
were to be deleted. The correct order is the opposite.
A sample failed session: https://bot.brew.sh/job/Homebrew%20Core/10080/version=el_capitan/testReport/junit/brew-test-bot/el_capitan/bottle_buku/ .
2016-10-25 01:44:40 -04:00
Josh Hagins
9c519bbdbc
keg_relocate: refactor relocate_text_files
...
Replace relocate_text_files with three methods that clarify intent:
replace_locations_with_placeholders, replace_placeholders_with_locations
and replace_text_in_files, the first two calling the third.
2016-10-24 16:21:08 -04:00
Josh Hagins
c46155aba4
keg_relocate: cache files rewritten during brew bottle
...
`brew bottle` replaces instances of the Homebrew prefix, cellar, and
repository with placeholders in all text files. Cache these files in
INSTALL_RECEIPT.json so that we don't have to check every single text
file for placeholders on install.
2016-10-24 16:21:08 -04:00
Markus Reiter
cafe149780
Merge pull request #1145 from reitermarkus/module-function
...
Use `module_function` for `Homebrew` module.
2016-10-04 10:31:49 +02:00
Markus Reiter
6201f01722
Fix Tty.gray
.
2016-10-02 08:40:38 +02:00
Markus Reiter
8b06a01e5b
Merge pull request #823 from reitermarkus/refactoring-tty
...
Refactor Tty.
2016-10-02 05:36:50 +02:00
Markus Reiter
0ab750bf24
Use module_function
for commands.
2016-10-02 00:24:47 +02:00
Markus Reiter
75e8b59aad
Add Formatter
module.
2016-10-01 20:00:49 +02:00
Markus Reiter
6d8ee395fa
Refactor Tty.
2016-10-01 20:00:49 +02:00
Markus Reiter
5b2ae6885b
Fix Lint/NestedMethodDefinition in
dev-cmd/bottle.rb`.
2016-09-29 22:58:41 +02:00
Markus Reiter
fe2d51e0b9
Fix Style/IfUnlessModifier.
2016-09-23 15:30:07 +02:00
Markus Reiter
a5b11a6a5c
Fix Style/GuardClause.
2016-09-23 15:30:07 +02:00
Markus Reiter
240e49052c
Fix Performance/FixedSize.
2016-09-23 15:30:06 +02:00
William Woodruff
846a5b79b6
Remove old cctools references now that only ruby-macho is used.
2016-09-22 14:36:24 -04:00
Mike McQuaid
167af26a24
Merge pull request #1019 from MikeMcQuaid/macos-rename
...
Use new "macOS" naming where appropriate.
2016-09-19 08:17:36 +01:00
Mike McQuaid
3f9cce0a03
Use new "macOS" naming where appropriate.
...
Not quite a mass replacement as I've used OS X and Mac OS X where
describing specific older versions and added compatibility methods
for things in the DSL.
2016-09-18 19:57:19 +01:00
Mike McQuaid
997ccb044d
Relocate HOMEBREW_REPOSITORY when necessary.
...
Now that the default from the installer, our CI and soon all users
is `/usr/local/Homebrew` it's a lot easier to check if there's
references to it (as we cannot look for `/usr/local` as it's a too
commonly hardcoded path).
2016-09-18 16:31:58 +01:00
Mike McQuaid
4295936322
bottle: allow forcing tap when not present.
2016-09-13 08:57:55 +01:00
Mike McQuaid
debc202d1e
bottle: remove debug statements.
2016-09-12 09:57:45 +01:00
Mike McQuaid
9b5c45a7df
dev-cmd/bottle: fix Rubocop warnings.
2016-09-11 19:14:55 +01:00
Mike McQuaid
237b70168e
bottle: set bottle block tap.
...
Avoids issues when using `—keep-old`
2016-09-11 17:33:39 +01:00
Mike McQuaid
ad3359b96e
Merge pull request #916 from MikeMcQuaid/bottle-old-value
...
bottle: fix old_value/value ordering for --merge.
2016-09-11 10:39:58 +01:00
Mike McQuaid
be6876c79a
bottle: fix old_value/value ordering for --merge.
...
Previously this was the wrong way around causing it to not be accepting
enough on e.g. a bump from :any to :any_no_relocation.
2016-09-10 21:15:28 +01:00
Mike McQuaid
d0c33b3705
bottle: use key/value rather than field.
...
Consistent naming is good.
2016-09-10 19:43:49 +01:00
Mike McQuaid
ea5da9b592
bottle: further improve --keep-old mismatching.
...
- Make the code more similar between `bottle` and `bottle --merge`.
- Also output the mismatched values when using `--merge`.
2016-09-10 16:12:27 +01:00
Mike McQuaid
44ba4583b7
bottle: improve --keep-old failure output.
...
If fields have changed: tell the user what they were before and are
afterwards.
2016-09-10 10:13:33 +01:00
Mike McQuaid
86bfd36af2
Don't hide some (now) developer commands.
2016-09-08 20:46:37 +01:00
Mike McQuaid
af8605ea4b
Move developer-focused commands to dev-cmd.
2016-09-08 20:46:37 +01:00