Jack Nagel 8944cc6b66 versions: fix up error handling
Now we handle some things more explicitly and in the process get rid of
the blanket rescue on the mktemp block, which is something of an
antipattern.

By unloading the class *after* determining the version, we avoid the
case where the class had previously been unloaded but Formula.factory
failed, and trying to unload the nonexistent class results in a
NameError. Doing it this way, we avoid having to rescue NameError and
thereby avoid hiding other cases where it may occur.

We also rescue TypeError which gets us past a few more bad formula in
the history in some instances.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-27 03:40:24 -06:00
2011-11-13 12:14:56 -08:00
2012-01-27 03:40:24 -06:00
2011-08-24 22:30:44 +01:00
2011-07-29 11:57:54 +01:00

Homebrew

Features, usage and installation instructions are summarized on the homepage.

What Packages Are Available?

  1. You can browse the Formula folder on GitHub.
  2. Or type brew search for a list.
  3. Or run brew server to browse packages off of a local web server.

More Documentation

brew help or man brew or check our wiki.

Who Are You?

I'm Max Howell and I'm a splendid chap.

Description
🍺 The missing package manager for macOS (or Linux)
Readme 144 MiB
4.6.25 Latest
2025-09-16 21:53:50 +00:00
Languages
Ruby 92%
Shell 5.2%
Roff 2.1%
HTML 0.5%