Commit Graph
972 Commits
Author SHA1 Message Date
Jack Nagel 92449566f5 More precise output for spec audits 2013-09-19 12:55:13 -05:00
Jack Nagel 69067e32fe Audit spec resources 2013-09-19 12:55:13 -05:00
Jack Nagel 7fbf2ab8e4 Extract ResourceAuditor from FormulaAuditor 2013-09-19 12:55:12 -05:00
Jack Nagel 8edeef83b7 create: use resource for checksum detection 2013-09-17 21:29:54 -05:00
Adam Vandenberg ba9353cd84 make linkapps official 2013-09-17 06:55:13 -07:00
Adam Vandenberg e9d8fcd03e move paths to utils 2013-09-17 06:44:25 -07:00
Adam Vandenberg 5b77eaf15f brew commands
Shows a list of built-in commands (but not shortcuts) and searches
for any external commands on the path.

Closes #22509.
2013-09-17 06:44:25 -07:00
Jack Nagel 539d05e894 Rephrase conditional 2013-09-16 16:12:25 -05:00
Mike McQuaid 0675ba2946 Rename PythonInstalled to PythonDependency.
Make it more consistent with other requirements.
2013-09-14 12:21:49 +01:00
Adam Vandenberg 91f22b7552 Allow resource fetching
Closes #20047.
2013-09-11 22:05:27 -07:00
Mike McQuaid ba057f6b9a bottle: loosen prefix grep check.
/usr/local is in lots of things unrelated to Homebrew so be more specific and look for opt instead.
2013-09-10 21:56:39 +01:00
Jack Nagel 95020adf9d update: restore previous state when interrupted
Fixes #19460.
Closes #22375.
2013-09-10 15:12:39 -05:00
Mike McQuaid c053779a98 audit: print warning and description. 2013-09-07 17:38:15 +01:00
Xiyue Deng e8188c55d0 Enable verbose compile command in create template.
* Add "--disable-silent-rules" option to autotools-based configure
  options.
  - Also add comments to notify user removing unrecognized configure
    options.
* Add "-DCMAKE_VERBOSE_MAKEFILE=ON" to cmake-based configure options.
2013-09-06 17:59:58 -07:00
Xiyue Deng b6e5c7ca3b Revert Library/Homebrew/cmd/install.rb to 4b320eec.
* Fix problem when install exception got swallow and reinstall thinks it
  succeeded.
2013-09-05 12:24:21 -07:00
Samuel John c54f879fbf reinstall cleanup 2013-09-05 14:59:33 +02:00
Xiyue Deng 4b320eec6b Make reinstall transaction safe.
* Aborting during reinstall will now restore the originally installed
  keg.
  - Change install code to pass on CannotInstallFormulaError exception
    to caller so it can be reused in reinstall.
* Add "--force-new-install" flag to force installing a new formula.

Closes #22190.

Signed-off-by: Samuel John <github@SamuelJohn.de>
2013-09-05 14:02:29 +02:00
Samuel John cf8f4ccc76 brew search <user>/<repo> [substring]
For example `brew search homebrew/science` to get a list of all formulae
from that tap, even if not yet tapped.

`brew search <user>/<repo>/<substr>` or
`brew search <user>/<repo> <substr>` to grep for `<substr>`
inside of the tap `<user>/<repo>`.
2013-09-03 11:52:34 +02:00
Samuel John 040bb3e7d1 doctor: be more helpful with suggestion about PATH
- Show a one liner that will append to
  the user's ~/.bash_profile. In 95% this will be
  ok and we assume zsh people are smart enough
  to know what they have to do.
2013-09-03 11:44:48 +02:00
Samuel John d2fea17e17 PythonInstalled: Allow formulae to set/append PYTHONPATH
Improve robustness of `PYTHONPATH` by first unsetting it (during
`satisfy`) so that the `PythonInstalled` can get the `python.version`
and so forth and then, after that, setting the `PYTHONPATH` to our
`global_site_packages`.
In the `python_helper` we append to the `PYTHONPATH` so if that var has
been set in a formula, it is respected.
Brew audit does no longer complain about setting the
`ENV['PYTHONPATH']`.
2013-09-03 10:46:06 +02:00
Mike McQuaid 456b955c92 brew-postinstall: add new command.
Runs post-install jobs in case they failed or need rerun for any reason.
2013-09-01 13:57:40 +01:00
Mike McQuaid f1e4f3ab99 brew-reinstall: don't list --force in args. 2013-09-01 13:57:40 +01:00
Mike McQuaid 1fd941d99e brew-reinstall: don't try and rebuild bottles. 2013-09-01 13:57:40 +01:00
Dan Hughes 54a6cffe8c Use system path for more tools, for Linux compat.
Closes #22196.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-30 13:02:19 -07:00
Jack Nagel e252aac989 Prefer interpolation to concatenation 2013-08-26 21:58:18 -05:00
Samuel John b3cc4e8c93 brew reinstall: Is able to work for all formulae
... and not just installed ones. Of course, strictly speaking,
reinstalling not-yet-installed formulae makes semantically little
sense, but the big win is that we can tell people (after we have
resolved an issue) to `brew reinstall <formula>` and even if a user
has removed that formula in the meantime, reinstall will do the right
thing. Basically adding --force to uninstall. I think this makes
reinstall more robust.
2013-08-21 20:18:55 +02:00
Samuel John 1c13eadc71 Revert "brew reinstall: Is able to work for all formulae"
This reverts commit 865f763ae5.
2013-08-21 20:17:38 +02:00
Samuel John 865f763ae5 brew reinstall: Is able to work for all formulae
... and not just installed ones. Of course, strictly speaking,
reinstalling not-yet-installed formulae makes semantically little
sense, but the big win is that we can tell people (after we have
resolved an issue) to `brew reinstall <formula>` and even if a user
has removed that formula in the meantime, reinstall will do the right
thing. Basically adding --force to uninstall. I think this makes
reinstall more robust.
2013-08-21 19:20:41 +02:00
Samuel John 19a59a9f15 brew create: Mention the example-formula 2013-08-20 15:44:12 +02:00
Amos Wenger 13c2776795 Use File::PATH_SEPARATOR globally instead of ':'
On Unix, the path separator is ':', whereas on Windows,
it is ';'. This is the first of a series of patch to bring
macbrew's and winbrew's codebases closer together.

The main places the magic constant ':' was being used were:
  - the $PATH environment variable
  - CMAKE-related environment variables
  - pkg-config related environment variables

Closes #21921.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-08-19 13:35:44 -05:00
Jack Nagel 1c991b249e audit: activate ENV extensions 2013-08-19 13:03:41 -05:00
Jack Nagel c0f5d3aa01 Rename HomebrewEnvExtension to Stdenv 2013-08-19 12:32:59 -05:00
Jack Nagel 77d02c537d Move common stuff to extend/ENV.rb 2013-08-19 12:32:57 -05:00
Jack Nagel 84a00aa797 Make Superenv activation explicit 2013-08-19 12:32:56 -05:00
Adam Vandenberg 06d45845fc add ubuntu package search 2013-08-14 22:14:35 -07:00
Adam Vandenberg 08c70fd341 audit: show real name for aliases 2013-08-14 21:35:46 -07:00
Samuel John de885ecdb0 brew reinstall: Reuse options from last time
Now, we can finally stop stuggesting to
    `brew rm <foo>` and then `brew install <foo> <with-your-preferred options>

So `brew reinstall` will honor all options that have been recorded
into the INSTALL_RECEIPT.json plus if `--build-bottle` was used.
2013-08-14 22:25:03 +02:00
Misty De Meo 77277da8ff Doctor: missed CLT URL replacement 2013-08-10 22:30:15 -07:00
Misty De Meo 2f147fb8d1 Update URL for CLT download
http://connect.apple.com is still down, but
https://developer.apple.com/downloads has all of the Apple developer
downloads available.

Fixes #21812.
2013-08-10 22:05:18 -07:00
Jack Nagel 99976efeed Make usage of ObserverPathnameExtension more obvious
Remove use of globals.

Closes #21795.
2013-08-10 19:02:00 -05:00
Adam Vandenberg 2a89cc64da Add fedora to brew search 2013-08-09 09:32:51 -07:00
Adam Vandenberg f6acb06bfe Add opensuse package search 2013-08-05 15:05:02 -07:00
Adam Vandenberg 9dce44474f Search marcqualie/nginx
Closes #21678.
2013-08-05 13:32:23 -07:00
Mike McQuaid da904368d4 bottles: update version regex messaging. 2013-08-04 08:25:51 -07:00
Adam Vandenberg 4180510d86 Add homebrew-binary to search 2013-08-03 10:27:45 -07:00
Ches Martin 0abe3d08e9 brew-create: don't break when given --set-version
Since 9f2782812c, specifying a version breaks with:

    Error: undefined method `detected_from_url?' for "1.2.2":String

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-03 10:11:11 -07:00
Jack Nagel 4b51e119a8 Improve signal-to-noise ratio of brew list --unbrewed
Closes #21573.
2013-08-01 22:13:46 -05:00
Mike McQuaid c45c77d031 audit: don't complain about bottle versions.
`brew bottle` already complains and this is a niche case.

References #21374.
2013-07-28 16:26:16 -07:00
Jack Nagel c08b13851a search: silence JSON decode errors
Closes #21506.
Closes #21508.
2013-07-28 15:38:46 -05:00
Adam Vandenberg 12426c87b1 audit: add TODO 2013-07-23 10:51:07 -07:00