Commit Graph
997 Commits
Author SHA1 Message Date
Jack Nagel 6059703508 Remove unused variable 2013-10-08 23:58:48 -05:00
Jack Nagel 1391171a0c Remove outdated comment 2013-10-08 23:47:35 -05:00
Jack Nagel 4870e2183e Prefer interpolation to concatenation 2013-10-08 23:44:23 -05:00
Jack Nagel 1c27bcdaec doctor: avoid using MACOS_VERSION 2013-10-08 23:32:22 -05:00
Jack Nagel a6b885f0eb config: squelch stderr when invoking git 2013-10-04 13:08:13 -05:00
Xiyue Deng 59581dec27 Fix install_name_tool path for keg_only formulae
* When a versioned keg_only formula installs the same set of executables
  or libraries as a unversioned formula that links to $HOMEBREW_PREFIX,
  install_name_tool will prefer to use the linked paths for files in
  keg_only formula.  This breaks software that should link to the
  keg_only formula but links to the unversioned one instead.
* Add an additional "options" parameter with keg_only field to specify
  the correct install path for keg_only formulae.
2013-10-04 02:03:03 -07:00
Nikolaus Wittenstein 7c7a3057af upgrade.rb: Fix plural_s when number = 0
Currently Upgrade prints out:
"Upgrading 0 outdated package, with result:"

This change makes it print:
"Upgrading 0 outdated packages, with result:"
correctly pluralizing "packages".

Closes #22854.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-09-26 22:54:51 -07:00
Mike McQuaid a88da279fb update: handle realpath exception. 2013-09-24 23:07:01 +01:00
Mike McQuaid e82636d17e update: untap/retap formulae before/after pull.
This should fix problems like #19799 where we pull formulae from taps
into core. I want to get something similar merged ASAP so we can pull
GCC into core (see #20678).

Closes #19799.
2013-09-24 23:06:10 +01:00
Jack Nagel dc8cbbb414 Clean up SoftwareSpec and Resource initializers 2013-09-23 21:39:33 -05:00
Mike McQuaid 0f557e1468 bottle: add option to force no bottle revision. 2013-09-23 18:23:23 +01:00
Mike McQuaid d6d876a773 bottle: fix merging .rb files. 2013-09-23 17:30:56 +01:00
Mike McQuaid a0160de027 bottle: fix default Cellar output. 2013-09-23 17:30:55 +01:00
Adam Vandenberg e15a90f826 don't audit jp sourceforge URLs 2013-09-22 22:06:53 -07:00
Mike McQuaid d090ba2a8d bottle: allow writing/committing new bottles. 2013-09-22 16:16:50 +01:00
Mike McQuaid 76ef4e1d50 Move bottle.rb logic from test-bot to brew bottle. 2013-09-22 16:16:50 +01:00
Mike McQuaid 12989ee42f bottle: only output relocatable message if >1MB. 2013-09-22 16:01:03 +01:00
Mike McQuaid 9ba08f095b bottle: move bottle output to ERB. 2013-09-22 16:01:02 +01:00
Mike McQuaid 03f233654f bottle: use versions to access previous bottles. 2013-09-22 16:01:02 +01:00
Mike McQuaid 47ea9117b0 versions: use bottle_filename only if f.bottle. 2013-09-22 16:01:02 +01:00
Mike McQuaid b2c8fe7e76 versions: add bottle filenames method.
Closes #22727.
2013-09-22 09:52:05 +01:00
Mike McQuaid f5af7aeef6 versions: add branch support in rev_list. 2013-09-22 09:52:05 +01:00
Mike McQuaid 8bdf158032 versions: split version_for_sha and use yield. 2013-09-22 09:52:05 +01:00
Mike McQuaid d752db519f bottle: fix --merge with multiple formulae. 2013-09-21 15:18:48 +01:00
Mike McQuaid 25a51853be bottle: improve outputted messages. 2013-09-21 15:18:48 +01:00
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